Document input = ConnectorTestUtils.createSimpleDocument(props);
Document output = createFilter(input,
CaseSensitivityType.EVERYTHING_CASE_INSENSITIVE, null, false);
Property prop = output.findProperty(SpiConstants.PROPNAME_ACLUSERS);
Value value = prop.nextValue();
Principal newPrincipal = ((PrincipalValue) value).getPrincipal();
assertEquals(principal.getName(), newPrincipal.getName());
assertEquals(CaseSensitivityType.EVERYTHING_CASE_INSENSITIVE,
newPrincipal.getCaseSensitivityType());