@Test
public void testSendEmailToAdmins_disabled() {

    setPrivateField(emailService, "enabled", new FixedConfigurationItem<>(Boolean.FALSE));
    emailService.sendEmailToAdmins(TEST_SUBJECT, TEST_BODY);
    verify(producerTemplateMock, never()).sendBodyAndHeaders(eq("smtp://smtp.server"), eq(TEST_BODY), any());
}