assertFalse(containsMapping(cmap));
}
private boolean containsMapping(Map<String,Object> cmap)
{
DeploymentRolesMappingProvider drmp = new DeploymentRolesMappingProvider();
MappingResult<RoleGroup> result = new MappingResult<RoleGroup>();
//MappingResult<Group> result = new MappingResult<Group>();
drmp.setMappingResult(result);
drmp.performMapping(cmap, getGroup(new String[]{"gooduser","okuser"}));
return result.getMappedObject().containsRole(new SimpleRole("allowedUser"));
//return result.getMappedObject().isMember(new SimplePrincipal("allowedUser"));
}