/**
* Tests that adding a role as required member while another role with the same name exists does not cause duplication.
*/
public void testAddRequiredMemberWithExistingRoleOk() {
GroupImpl group = new GroupImpl("foo");
assertTrue(group.addRequiredMember(new UserImpl("bar")));
assertFalse(group.addRequiredMember(new RoleImpl("bar"))); // should be ignored...
assertNull(group.getMembers());
assertEquals(1, group.getRequiredMembers().length);
}