@Test
public void testGetEffectivePolicies() throws Exception {

    JackrabbitAccessControlManager delegate = mock(JackrabbitAccessControlManager.class);
    final Set<Principal> principals = Collections.singleton(EveryonePrincipal.getInstance());
    AccessControlPolicy[] policies = new AccessControlPolicy[0];
    when(delegate.getEffectivePolicies(principals)).thenReturn(policies);
    JackrabbitAccessControlManagerFacade facade = getFacade(delegate);
    assertSame("should return same array", policies, facade.getEffectivePolicies(principals));
}