### Question:
AuthenticationManager implements AuthenticationService, ManagedService { @Override public void updated(Dictionary<String, ?> properties) throws ConfigurationException { if (properties == null) { return; } String propertyValue = (String) properties.get(AUTH_ENABLED); boolean isTrueString = Boolean.parseBoolean(propertyValue); if (!isTrueString && !"false".equalsIgnoreCase(propertyValue)) { throw new ConfigurationException(AUTH_ENABLED, AUTH_ENABLED_ERR); } authEnabled = isTrueString; } AuthenticationManager(); @Override Authentication get(); @Override void set(Authentication authentication); @Override void clear(); @Override boolean isAuthEnabled(); @Override void updated(Dictionary<String, ?> properties);  }### Answer:
@SuppressModernizer @Test(expected = ConfigurationException.class) public void testUpdatedInvalidValue() throws ConfigurationException { Dictionary<String, String> props = new Hashtable<>(); props.put(AuthenticationManager.AUTH_ENABLED, "yes"); authManager.updated(props); }
@SuppressModernizer @Test(expected = ConfigurationException.class) public void testUpdatedInvalidKey() throws ConfigurationException { Dictionary<String, String> props = new Hashtable<>(); props.put("Invalid Key", "true"); authManager.updated(props); }