### Question:
SQLNotifierFactory extends AbstractNotifierFactory implements NotifierFactory { @Override public SQLNotifier createNotifier(Map<String, Object> configuration, String name, String webUiUrl) { String driver = getString(configuration, DRIVER); String connectionUrl = getString(configuration, CONNECTION_URL); String username = getString(configuration, USERNAME); String password = getString(configuration, PASSWORD); String targetVersionNotificationsTable = getString(configuration, TARGET_VERSION_NOTIFICATIONS_TABLE); ISQLNotifierConfiguration notifierConfiguration = new SQLNotifierConfiguration(driver, connectionUrl, username, password, targetVersionNotificationsTable); return new SQLNotifier(notifierConfiguration); }  @Override void validate(Map<String, Object> configuration); @Override SQLNotifier createNotifier(Map<String, Object> configuration, String name, String webUiUrl);  }### Answer:
@Test public void testCreateNotifier() throws Exception { assertNotNull(factory.createNotifier(workingConfiguration, "test", "")); try { assertNull(factory.createNotifier(nonWorkingConfiguration, "test", "")); } catch (Exception e) { assertTrue(e.getCause() instanceof InvalidConfigurationException); } }