### Question:
AmbariServerConfigurationUtils { public static AmbariServerConfigurationKey getConfigurationKey(String category, String propertyName) { return getConfigurationKey(AmbariServerConfigurationCategory.translate(category), propertyName); }  static AmbariServerConfigurationKey getConfigurationKey(String category, String propertyName); static AmbariServerConfigurationKey getConfigurationKey(AmbariServerConfigurationCategory category, String propertyName); static ConfigurationPropertyType getConfigurationPropertyType(String category, String propertyName); static ConfigurationPropertyType getConfigurationPropertyType(AmbariServerConfigurationCategory category, String propertyName); static String getConfigurationPropertyTypeName(AmbariServerConfigurationCategory category, String propertyName); static String getConfigurationPropertyTypeName(String category, String propertyName); static boolean isPassword(String category, String propertyName); static boolean isPassword(AmbariServerConfigurationCategory category, String propertyName); static boolean isPassword(AmbariServerConfigurationKey configurationKey);  }### Answer:
@Test public void testGetConfigurationKey() { Assert.assertSame(TPROXY_AUTHENTICATION_ENABLED, AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_AUTHENTICATION_ENABLED.getConfigurationCategory(), TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(TPROXY_AUTHENTICATION_ENABLED, AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_AUTHENTICATION_ENABLED.getConfigurationCategory().getCategoryName(), TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(TPROXY_ALLOWED_GROUPS, AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), TPROXY_ALLOWED_GROUPS.key())); Assert.assertSame(TPROXY_ALLOWED_GROUPS, AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), "ambari.tproxy.proxyuser.knox.groups")); Assert.assertSame(TPROXY_ALLOWED_GROUPS, AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), "ambari.tproxy.proxyuser.not.knox.groups")); Assert.assertNull(AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), "invalid.tproxy.proxyuser.not.knox.groups")); Assert.assertNull(AmbariServerConfigurationUtils.getConfigurationKey((AmbariServerConfigurationCategory) null, TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertNull(AmbariServerConfigurationUtils.getConfigurationKey((String) null, TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertNull(AmbariServerConfigurationUtils.getConfigurationKey("invalid", TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertNull(AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_CONFIGURATION.getCategoryName(), null)); Assert.assertNull(AmbariServerConfigurationUtils.getConfigurationKey(TPROXY_CONFIGURATION.getCategoryName(), "invalid")); }