@Test
public void testCustom() {

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