### Question:
AmbariServerConfigurationUtils { public static ConfigurationPropertyType getConfigurationPropertyType(String category, String propertyName) { return getConfigurationPropertyType(getConfigurationKey(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 testGetConfigurationPropertyType() { Assert.assertSame(TPROXY_AUTHENTICATION_ENABLED.getConfigurationPropertyType(), AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_AUTHENTICATION_ENABLED.getConfigurationCategory(), TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(TPROXY_AUTHENTICATION_ENABLED.getConfigurationPropertyType(), AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_AUTHENTICATION_ENABLED.getConfigurationCategory().getCategoryName(), TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(TPROXY_ALLOWED_GROUPS.getConfigurationPropertyType(), AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), TPROXY_ALLOWED_GROUPS.key())); Assert.assertSame(TPROXY_ALLOWED_GROUPS.getConfigurationPropertyType(), AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), "ambari.tproxy.proxyuser.knox.groups")); Assert.assertSame(TPROXY_ALLOWED_GROUPS.getConfigurationPropertyType(), AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), "ambari.tproxy.proxyuser.not.knox.groups")); Assert.assertSame(UNKNOWN, AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_ALLOWED_GROUPS.getConfigurationCategory().getCategoryName(), "invalid.tproxy.proxyuser.not.knox.groups")); Assert.assertSame(UNKNOWN, AmbariServerConfigurationUtils.getConfigurationPropertyType((AmbariServerConfigurationCategory) null, TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(UNKNOWN, AmbariServerConfigurationUtils.getConfigurationPropertyType((String) null, TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(UNKNOWN, AmbariServerConfigurationUtils.getConfigurationPropertyType("invalid", TPROXY_AUTHENTICATION_ENABLED.key())); Assert.assertSame(UNKNOWN, AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_CONFIGURATION.getCategoryName(), null)); Assert.assertSame(UNKNOWN, AmbariServerConfigurationUtils.getConfigurationPropertyType(TPROXY_CONFIGURATION.getCategoryName(), "invalid")); }