voters.addRequiredMember(citizens);
voters.addRequiredMember(adults);
voters.addMember(m_anyone);
// Elmer belongs to the citizens and adults...
User elmer = createUser("elmer");
citizens.addMember(elmer);
adults.addMember(elmer);
// Pepe belongs to the citizens, but is not an adult...
User pepe = createUser("pepe");
citizens.addMember(pepe);
// Bugs is an adult, but is not a citizen...
User bugs = createUser("bugs");
adults.addMember(bugs);
// Daffy is not an adult, neither a citizen...
User daffy = createUser("daffy");
// Donald is not an adult, neither a citizen...
User donald = RoleFactory.createUser("donald");
AuthorizationImpl auth;
auth = new AuthorizationImpl(elmer, m_roleRepository);
assertSameRoles(new String[]{ "elmer", "adult", "citizen", "voter" }, auth.getRoles());