### Question:
AmbariServerConfiguration { protected String getValue(AmbariServerConfigurationKey ambariServerConfigurationKey, Map<String, String> configurationMap) { return getValue(ambariServerConfigurationKey.key(), configurationMap, ambariServerConfigurationKey.getDefaultValue()); }    }### Answer:
@Test public void testGetValue() { AmbariServerConfiguration ambariServerConfiguration = new AmbariServerConfiguration() { }; Map<String, String> configurationMap = Collections.singletonMap(TPROXY_AUTHENTICATION_ENABLED.key(), "true"); Assert.assertEquals("true", ambariServerConfiguration.getValue(TPROXY_AUTHENTICATION_ENABLED, configurationMap)); Assert.assertEquals("false", LDAP_ENABLED.getDefaultValue()); Assert.assertEquals(LDAP_ENABLED.getDefaultValue(), ambariServerConfiguration.getValue(LDAP_ENABLED, configurationMap)); Assert.assertEquals("defaultValue", ambariServerConfiguration.getValue(null, configurationMap, "defaultValue")); Assert.assertEquals("defaultValue", ambariServerConfiguration.getValue("property.name", null, "defaultValue")); Assert.assertNull(ambariServerConfiguration.getValue("property.name", Collections.emptyMap(), null)); }