hasRole = secMgr.doesUserHaveRole(domain, user, password, testRole);
assertTrue("scott has EchoLocal role", hasRole);
testRole.clear();
SimplePrincipal projectUser = new SimplePrincipal("ProjectUser");
testRole.add(projectUser);
hasRole = secMgr.doesUserHaveRole(domain, user, password, testRole);
assertTrue("scott has ProjectUser role", hasRole);
Set roles = secMgr.getUserRoles(domain, user, password);
assertTrue(roles != null);
assertTrue("roles contains EchoLocal", roles.contains(echoLocal));
assertTrue("roles contains ProjectUser", roles.contains(projectUser));