@@ -0,0 +1,2345 @@
+import com.example.ses.SendMessage;%0Aimport com.example.ses.SendMessageAttachment;%0Aimport org.junit.jupiter.api.*;%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.mockito.Mockito.mock;%0Aimport software.amazon.awssdk.services.ses.SesClient;%0Aimport javax.mail.MessagingException;%0Aimport java.io.IOException;%0A%0A%0A@TestInstance(TestInstance.Lifecycle.PER_METHOD)%0A@TestMethodOrder(MethodOrderer.OrderAnnotation.class)%0Apublic class SendMessageMockTest %7B%0A%0A    private static SesClient client;%0A%0A    // This value is set as an input parameter%0A    private static String SENDER = %22Please specify a sender email%22;%0A%0A    // This value is set as an input parameter%0A    private static String RECIPIENT = %22Please specify the RECIPIENT email%22;;%0A%0A    // This value is set as an input parameter%0A    private static String SUBJECT = %22UNIT Test%22;%0A%0A    private static String FileLocation = %22Please specify the full path to an Excel file to use as an attachment%22;%0A%0A%0A    // The email body for recipients with non-HTML email clients%0A    private static String BODY_TEXT = %22Hello,%5Cr%5Cn%22 + %22Here is a list of customers to contact.%22;%0A%0A    // The HTML body of the email%0A    private static String BODY_HTML = %22%3Chtml%3E%22 + %22%3Chead%3E%3C/head%3E%22 + %22%3Cbody%3E%22 + %22%3Ch1%3EHello!%3C/h1%3E%22%0A            + %22%3Cp%3EHere is a list of customers to contact.%3C/p%3E%22 + %22%3C/body%3E%22 + %22%3C/html%3E%22;%0A%0A%0A    @BeforeAll%0A    public static void setUp() %7B%0A        try %7B%0A        client = mock(SesClient.class);%0A%0A        %7D catch (Exception ex) %7B%0A            ex.printStackTrace();%0A        %7D%0A    %7D%0A%0A    @Test%0A    @Order(1)%0A    public void whenInitializingAWSS3Service_thenNotNull() %7B%0A        assertThat(client).isNotNull();%0A        System.out.println(%22Test 1 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(2)%0A    public void sendtest() %7B%0A%0A        try %7B%0A        SendMessage.send(client, SENDER,RECIPIENT, SUBJECT,BODY_TEXT,BODY_HTML );%0A%0A    %7D catch (IOException %7C MessagingException e) %7B%0A        e.getStackTrace();%0A    %7D%0A        System.out.println(%22Test 2 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(3)%0A    public void sendTestAtt() %7B%0A        try %7B%0A            SendMessageAttachment.sendemailAttachment(client, SENDER, RECIPIENT, SUBJECT, BODY_TEXT, BODY_HTML,FileLocation);%0A%0A        %7D catch (IOException %7C MessagingException e) %7B%0A            e.getStackTrace();%0A        %7D%0A        System.out.println(%22Test 3 passed%22);%0A%0A    %7D%0A%7D%0A

Create SendMessageMockTest.java