@Test
public void testCustom()  {

  final Configuration conf = new Configuration(false);
  for (Type type : Type.values()) {
    conf.set(type.getAclConfigKey(), type.toString() + " ");
  }
  final KMSACLs acls = new KMSACLs(conf);
  for (Type type : Type.values()) {
    Assert.assertTrue(acls.hasAccess(type,
        UserGroupInformation.createRemoteUser(type.toString()), ipAddress));
    Assert.assertFalse(acls.hasAccess(type,
        UserGroupInformation.createRemoteUser("foo"), ipAddress));
  }
}