@Test(expected = IllegalArgumentException.class)
  public void testKerberosAuthenticationEmptySPNEGOKeytabFile() {
    Properties properties = new Properties();
    properties.put(Configuration.KERBEROS_AUTH_ENABLED.getKey(), "true");
    properties.put(Configuration.KERBEROS_AUTH_SPNEGO_KEYTAB_FILE.getKey(), "");
    properties.put(Configuration.KERBEROS_AUTH_SPNEGO_PRINCIPAL.getKey(), "spnego/principal@REALM");
    properties.put(Configuration.KERBEROS_AUTH_AUTH_TO_LOCAL_RULES.getKey(), "DEFAULT");

    new Configuration(properties);
  }
Tests that the Kerberos-authentication properties are read and properly set in an
{@link AmbariKerberosAuthenticationProperties} instance when Kerberos authentication is disabled.
ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java