in component-test/src/main/java/org/apache/fineract/cn/notification/TestEmailService.java [60:83]
public void shouldSendFormattedEmail() throws InterruptedException, IOException {
this.logger.info("Send Email Notification");
Customer customerPayload = new Customer();
customerPayload.setGivenName("Test");
customerPayload.setSurname("User");
Address address = new Address();
address.setCity("Cape Coast");
address.setCity("Street");
address.setCountry("Ghana");
address.setCountryCode("GH");
address.setRegion("Central Region");
address.setPostalCode("T22022");
customerPayload.setAddress(address);
Map<String, Object> templateVariables = new HashMap<>();
templateVariables.put(customerPayload.getClass().getName().toLowerCase(),customerPayload);
notificationService.sendFormattedEmail(
TEST_ADDRESS,
TEST_TEMPLATE,
templateVariables
);
}