@Test
public void testCustom() {

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