HashUserRealm userRealm = new HashUserRealm();
userRealm.put("user", "pass");
userRealm.addUserToRole("user", "role");
assertNotNull(userRealm.authenticate("user", "pass", null));
sh.setUserRealm(userRealm);
Constraint constraint = new Constraint();
constraint.setName(Constraint.__BASIC_AUTH);;