@Test
public void testGoodACLs() {

  List<ACL> result = ZKUtil.parseACLs(
      "sasl:hdfs/host1@MY.DOMAIN:cdrwa, sasl:hdfs/host2@MY.DOMAIN:ca");
  ACL acl0 = result.get(0);
  assertEquals(Perms.CREATE | Perms.DELETE | Perms.READ |
      Perms.WRITE | Perms.ADMIN, acl0.getPerms());
  assertEquals("sasl", acl0.getId().getScheme());
  assertEquals("hdfs/host1@MY.DOMAIN", acl0.getId().getId());
  
  ACL acl1 = result.get(1);
  assertEquals(Perms.CREATE | Perms.ADMIN, acl1.getPerms());
  assertEquals("sasl", acl1.getId().getScheme());
  assertEquals("hdfs/host2@MY.DOMAIN", acl1.getId().getId());
}