@Test
public void testSendFormattedEmail_ok() {

    final String recipients = "admin@oh.or";
    final String from = "openhub@openwise.cz";
    setPrivateField(emailService, "from", new FixedConfigurationItem<>(from));
    emailService.sendFormattedEmail(recipients, TEST_SUBJECT, TEST_BODY);
    final Map<String, Object> expected = new HashMap<>();
    expected.put("To", recipients);
    expected.put("From", from);
    expected.put("Subject", TEST_SUBJECT);
    verify(producerTemplateMock, times(1)).sendBodyAndHeaders(eq("smtp://smtp.server"), eq(TEST_BODY), eq(expected));
}