@Test
public void isKerberosEnabled() {

    Map<String, String> conf = new HashMap();
    conf.put(RANGER_AUTH_TYPE, "kerberos");
    conf.put("schema-registry.authentication", "kerberos");
    assertTrue(SecurityUtils.isKerberosEnabled(conf));
    conf = new HashMap();
    assertFalse(SecurityUtils.isKerberosEnabled(conf));
    conf = new HashMap();
    conf.put(RANGER_AUTH_TYPE, "kerberos");
    assertFalse(SecurityUtils.isKerberosEnabled(conf));
    conf = new HashMap();
    conf.put("schema-registry.authentication", "kerberos");
    assertFalse(SecurityUtils.isKerberosEnabled(conf));
    conf = new HashMap();
    conf.put(RANGER_AUTH_TYPE, "kerberos");
    conf.put("schema-registry.authentication", "Something wrong");
    assertFalse(SecurityUtils.isKerberosEnabled(conf));
    conf = new HashMap();
    conf.put("schema-registry.authentication", "kerberos");
    conf.put(RANGER_AUTH_TYPE, "Something wrong");
    assertFalse(SecurityUtils.isKerberosEnabled(conf));
}