@Test
public void testShouldInclude() {

  KerberosIdentityDescriptor identityDescriptor = createFromJSON();
  Map<String, Object> context = new TreeMap<String, Object>();
  context.put("services", new HashSet<String>(Arrays.asList("HIVE", "HDFS", "ZOOKEEPER")));
  Assert.assertTrue(identityDescriptor.shouldInclude(context));
  context.put("services", new HashSet<String>(Arrays.asList("NOT_HIVE", "HDFS", "ZOOKEEPER")));
  Assert.assertFalse(identityDescriptor.shouldInclude(context));
}