}
public void testSimpleRoleGroupContains() throws Exception
{
SimpleRoleGroup firstRoleGroup = new SimpleRoleGroup("firstrg");
firstRoleGroup.getRoles().add(new SimpleRole("A"));
firstRoleGroup.getRoles().add(new SimpleRole("B"));
firstRoleGroup.getRoles().add(new SimpleRole("C"));
SimpleRoleGroup secondRoleGroup = new SimpleRoleGroup("secondrg");
secondRoleGroup.getRoles().add(new SimpleRole("A"));
secondRoleGroup.getRoles().add(new SimpleRole("B"));
assertTrue(firstRoleGroup.containsAll(firstRoleGroup));
assertTrue(secondRoleGroup.containsAll(secondRoleGroup));
assertTrue(firstRoleGroup.containsAll(secondRoleGroup));
assertFalse(secondRoleGroup.containsAll(firstRoleGroup));