configureAccessControl(rs);
SecurityManager.setThreadSubject(TestPrincipalUtils.createTestSubject("user5"));
ObjectProperties actionProperties = new ObjectProperties("getName");
actionProperties.put(ObjectProperties.Property.COMPONENT, "Test");
Result result = _plugin.authorise(Operation.ACCESS, ObjectType.METHOD, actionProperties);
assertEquals(Result.ALLOWED, result);
actionProperties.put(ObjectProperties.Property.COMPONENT, "Test2");
result = _plugin.authorise(Operation.ACCESS, ObjectType.METHOD, actionProperties);
assertEquals(Result.DEFER, result);