Registry.addEntry(Registry.SECURITY, (RegistryEntry) createSecurityEntry( "all_users-view_anon", null, "user", null, "*"));
assertNotNull( "Getting all_users-view_anon security " , Registry.getEntry( Registry.SECURITY, "all_users-view_anon"));
SecurityEntry secEntry = (SecurityEntry) Registry.getEntry( Registry.SECURITY, "all_users-view_anon");
Vector accessVector = secEntry.getAccesses();
assertEquals( "Getting number of accesses for all_users-view_anon", 1, accessVector.size());
BaseSecurityAllow allowElement = new BaseSecurityAllow();
allowElement.setRole("guest");
Vector allowVector = new Vector();
allowVector.addElement(allowElement);
BaseSecurityAccess accessElement = new BaseSecurityAccess();
accessElement.setAction("view");
accessElement.setAllows( allowVector );