String unauthenticatedIdentity = (String) options.get("unauthenticatedIdentity");
assertNotNull("options.unauthenticatedIdentity exists", unauthenticatedIdentity);
assertTrue("options.unauthenticatedIdentity == guest",
unauthenticatedIdentity.equals("guest"));
Users users = (Users) options.get("userInfo");
assertNotNull("options.userInfo is a Users", users);
assertTrue("Users.size("+users.size()+") is 6", users.size() == 6);
Users.User jduke = users.getUser("jduke");
assertNotNull("jduke is a user", jduke);
assertTrue("jduke.password == theduke", jduke.getPassword().equals("theduke"));
String[] roleNames = jduke.getRoleNames("Roles");
HashSet roles = new HashSet(Arrays.asList(roleNames));
assertTrue("jduke has roles", roles.size() == 3);