public void testCreatingBasicACL() throws Exception { this.setRoleFileName("src/test/BasicACLRoleConfig.xml"); this.setConfigurationFileName("src/test/ACLComponentConfig.xml");  ACLFactory factory = (ACLFactory) lookup(ACLFactory.ROLE);
public void testCreatingBasicACL() throws Exception { ACLFactory factory = (ACLFactory) RegistryManager.getInstance().getRegistry().getService( "fulcrum.security.aclFactoryBasic", ACLFactory.class);
    public void testCreatingBasicACL() throws Exception    {        this.setRoleFileName("src/test/BasicACLRoleConfig.xml");        this.setConfigurationFileName("src/test/ACLComponentConfig.xml");        ACLFactory factory = (ACLFactory) lookup(ACLFactory.ROLE);        BasicUser user = new BasicUser();        user.setName("bob");        user.setId(new Integer(1));        BasicGroup group = new BasicGroup();        group.setName("group1");        group.setId(new Integer(1));        user.addGroup(group);        AccessControlList acl = factory.getAccessControlList(user);        assertTrue(acl instanceof BasicAccessControlList);		BasicAccessControlList bacl = (BasicAccessControlList) acl;        assertTrue(bacl.hasGroup(group));    }