assertEquals("Verify action", "view", securityAccess.getAction());
// Get allows
Vector securityAllows = securityAccess.getAllows();
assertNotNull("Got SecurityAllows", securityAllows);
SecurityAllow securityAllow = (SecurityAllow) securityAllows.firstElement();
assertNotNull("Got SecurityAllow", securityAllow);
assertEquals("Verify role", "clerk", securityAllow.getRole());
assertNull("Verify user" , securityAllow.getUser());
securityAllow = (SecurityAllow) securityAllows.elementAt(1);
assertNotNull("Got SecurityAllow", securityAllow);
assertNull("Verify role", securityAllow.getRole());
assertEquals("Verify user", "joe", securityAllow.getUser());
securityAllow = (SecurityAllow) securityAllows.elementAt(2);
assertNotNull("Got SecurityAllow", securityAllow);
assertEquals("Verify role", "manager", securityAllow.getRole());
assertEquals("Verify user", "fred", securityAllow.getUser());
// test allows
assertEquals("clerk role can view", true, securityEntry.allowsRole("clerk", "view"));
assertEquals("manager role can view", true, securityEntry.allowsRole("manager", "view"));
assertEquals("anonymous role can NOT view", false, securityEntry.allowsRole("anonymous", "view"));