### Question:
SQLNotifierFactory extends AbstractNotifierFactory implements NotifierFactory { @Override public void validate(Map<String, Object> configuration) throws InvalidConfigurationException { getRequiredString(configuration, DRIVER); getRequiredString(configuration, CONNECTION_URL); getRequiredString(configuration, USERNAME); getRequiredString(configuration, PASSWORD); getRequiredString(configuration, TARGET_VERSION_NOTIFICATIONS_TABLE); }  @Override void validate(Map<String, Object> configuration); @Override SQLNotifier createNotifier(Map<String, Object> configuration, String name, String webUiUrl);  }### Answer:
@Test public void testValidate() { try { factory.validate(workingConfiguration); } catch (InvalidConfigurationException e) { assertTrue("This configuration is valid", false); } try { factory.validate(nonWorkingConfiguration); } catch (InvalidConfigurationException e) { assertTrue("This configuration is invalid", true); } }