@Test
public void testKerberosAuthenticationDisabled() {

  Properties properties = new Properties();
  properties.put(Configuration.KERBEROS_AUTH_ENABLED.getKey(), "false");
  Configuration configuration = new Configuration(properties);
  AmbariKerberosAuthenticationProperties kerberosAuthenticationProperties = configuration.getKerberosAuthenticationProperties();
  Assert.assertFalse(kerberosAuthenticationProperties.isKerberosAuthenticationEnabled());
  Assert.assertNull(kerberosAuthenticationProperties.getSpnegoKeytabFilePath());
  Assert.assertNull(kerberosAuthenticationProperties.getSpnegoPrincipalName());
  Assert.assertNull(kerberosAuthenticationProperties.getAuthToLocalRules());
  Assert.assertEquals(Collections.emptyList(), kerberosAuthenticationProperties.getOrderedUserTypes());
}