### Question:
JDBCConnectionManager implements Configurable { @Override public void configure(final Context context) { driver = context.getString("driver"); Preconditions.checkNotNull(driver, "Driver must be specified."); url = context.getString("url"); Preconditions.checkNotNull(url, "URL must be specified."); user = context.getString("user"); Preconditions.checkNotNull(user, "User must be specified."); password = context.getString("password"); Preconditions.checkNotNull(password, "Driver must be specified."); } JDBCConnectionManager(final SinkCounter counter); @Override void configure(final Context context); Connection getConnection(); void start(); void ensureConnectionValid(); void closeConnection();  }### Answer:
@Test(expected = NullPointerException.class) public void testConfigureRequiredDriver() { manager.configure(newContext(null, "url", "user", "password")); }
@Test(expected = NullPointerException.class) public void testConfigureRequiredURL() { manager.configure(newContext("driver", null, "user", "password")); }
@Test(expected = NullPointerException.class) public void testConfigureRequiredUser() { manager.configure(newContext("driver", "url", null, "password")); }
@Test(expected = NullPointerException.class) public void testConfigureRequiredPassword() { manager.configure(newContext("driver", "url", "user", null)); }