@@ -0,0 +1,3128 @@
+import com.example.ses.ListIdentities;%0Aimport com.example.ses.SendMessage;%0Aimport com.example.ses.SendMessageAttachment;%0Aimport org.junit.jupiter.api.*;%0Aimport software.amazon.awssdk.regions.Region;%0Aimport java.io.*;%0Aimport java.net.URISyntaxException;%0Aimport java.util.*;%0Aimport static org.junit.jupiter.api.Assertions.*;%0Aimport software.amazon.awssdk.services.ses.SesClient;%0Aimport javax.mail.MessagingException;%0A%0A@TestInstance(TestInstance.Lifecycle.PER_METHOD)%0A@TestMethodOrder(MethodOrderer.OrderAnnotation.class)%0Apublic class SESTest %7B%0A%0A    private static SesClient client ;%0A    private static String sender=%22%22;%0A    private static String recipient=%22%22;%0A    private static String subject=%22%22;%0A    private static String fileLocation=%22%22;%0A%0A    private static String bodyText = %22Hello,%5Cr%5Cn%22 + %22Please see the attached file for a list %22%0A            + %22of customers to contact.%22;%0A%0A    // The HTML body of the email.%0A    private static String bodyHTML = %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%3EPlease see the attached file for a %22 + %22list 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() throws IOException, URISyntaxException %7B%0A%0A        Region region = Region.US_WEST_2;%0A        client = SesClient.builder()%0A                .region(region)%0A                .build();%0A%0A        try (InputStream input = SESTest.class.getClassLoader().getResourceAsStream(%22config.properties%22)) %7B%0A%0A            Properties prop = new Properties();%0A%0A            if (input == null) %7B%0A                System.out.println(%22Sorry, unable to find config.properties%22);%0A                return;%0A            %7D%0A%0A            //load a properties file from class path, inside static method%0A            prop.load(input);%0A%0A            // Populate the data members required for all tests%0A            sender = prop.getProperty(%22sender%22);%0A            recipient = prop.getProperty(%22recipient%22);%0A            subject = prop.getProperty(%22subject%22);%0A            fileLocation= prop.getProperty(%22fileLocation%22);%0A%0A%0A        %7D catch (IOException ex) %7B%0A            ex.printStackTrace();%0A        %7D%0A%0A    %7D%0A%0A    @Test%0A    @Order(1)%0A    public void whenInitializingAWSService_thenNotNull() %7B%0A        assertNotNull(client);%0A        System.out.println(%22Test 1 passed%22);%0A    %7D%0A%0A    @Test%0A    @Order(2)%0A    public void SendMessage() %7B%0A%0A        try %7B%0A            SendMessage.send(client, sender,recipient, subject,bodyText,bodyHTML);%0A            System.out.println(%22Test 2 passed%22);%0A%0A        %7D catch (IOException %7C MessagingException e) %7B%0A            e.getStackTrace();%0A        %7D%0A    %7D%0A%0A    @Test%0A    @Order(3)%0A    public void SendMessageAttachment() %7B%0A%0A        try %7B%0A            SendMessageAttachment.sendemailAttachment(client, sender,recipient, subject,bodyText,bodyHTML,fileLocation );%0A            System.out.println(%22Test 3 passed%22);%0A%0A        %7D catch (IOException %7C MessagingException e) %7B%0A            e.getStackTrace();%0A        %7D%0A    %7D%0A%0A    @Test%0A    @Order(4)%0A    public void ListIdentities() %7B%0A        ListIdentities.listSESIdentities(client);%0A        System.out.println(%22Test 4 passed%22);%0A    %7D%0A%7D%0A

Create SESTest.java