@Test(timeout=60000)
public void testInit() throws Exception {

  Assert.assertEquals(KerberosTestUtils.getKeytabFile(), handler.getKeytab());
  Set<KerberosPrincipal> principals = handler.getPrincipals();
  Principal expectedPrincipal =
      new KerberosPrincipal(KerberosTestUtils.getServerPrincipal());
  Assert.assertTrue(principals.contains(expectedPrincipal));
  Assert.assertEquals(1, principals.size());
}