AclPropertyFilter factory = new AclPropertyFilter();
Document output = factory.newDocumentFilter(input);
Property prop = output.findProperty(SpiConstants.PROPNAME_ACLUSERS);
Value value = prop.nextValue();
Principal newPrincipal = ((PrincipalValue) value).getPrincipal();
assertEquals(CaseSensitivityType.EVERYTHING_CASE_SENSITIVE,
newPrincipal.getCaseSensitivityType());
assertEquals("Jane Doe", newPrincipal.getName());
Property denyprop =
output.findProperty(SpiConstants.PROPNAME_ACLDENYUSERS);
Value denyvalue = denyprop.nextValue();
Principal denyPrincipal = ((PrincipalValue) denyvalue).getPrincipal();
assertEquals(CaseSensitivityType.EVERYTHING_CASE_SENSITIVE,
denyPrincipal.getCaseSensitivityType());
assertEquals("John Doe", denyPrincipal.getName());
}