public void testAllowBrowseAcl() throws Exception {
insertUsers("user1", "user2");
insertGroup("group1");
MockDmAcl aclObj = new MockDmAcl(123, "testAcl123");
addAllowUserToAcl(aclObj, "user1");
// add browse permission to user2 and group1
aclObj.addAccessor("user2", IAcl.DF_PERMIT_BROWSE,
IAcl.DF_PERMIT_TYPE_ACCESS_PERMIT, false);
aclObj.addAccessor("group1", IAcl.DF_PERMIT_BROWSE,
IAcl.DF_PERMIT_TYPE_ACCESS_PERMIT, true);
aclList.processAcl(aclObj, aclValues);
assertAclEquals(ImmutableSet.of(), SpiConstants.PROPNAME_ACLGROUPS);