assertTrue("scott has Echo role", hasRole);
testRole.clear();
testRole.add(new SimplePrincipal("EchoLocal"));
hasRole = secMgr.doesUserHaveRole(domain, user, password, testRole);
assertTrue("scott has EchoLocal role", hasRole);
testRole.clear();
testRole.add(new SimplePrincipal("ProjectUser"));
hasRole = secMgr.doesUserHaveRole(domain, user, password, testRole);
assertTrue("scott has ProjectUser role", hasRole);
isValid = secMgr.isValid(domain, user, "badpass".toCharArray());