If you have a SendGrid issue, please contact our support team.
When debugging or testing, it may be useful to examine the raw request body to compare against the documented format.
You can do this right before you call request.setBody(mail.build())
like so:
System.out.println(mail.build());