@Test
public void testGetPrincipalNamesMissingPattern() throws IOException {

  createKeyTab(testKeytab, new String[]{"test/testhost@testRealm"});
  try {
    KerberosUtil.getPrincipalNames(testKeytab, null);
    Assert.fail("Exception should have been thrown");
  } catch (Exception e) {
    //expects exception
  }
}