@Test
public void testGetApplicablePolicies() throws Exception {

    JackrabbitAccessControlManager delegate = mock(JackrabbitAccessControlManager.class);
    final Principal principal = EveryonePrincipal.getInstance();
    JackrabbitAccessControlPolicy[] policies = new JackrabbitAccessControlPolicy[0];
    when(delegate.getApplicablePolicies(principal)).thenReturn(policies);
    JackrabbitAccessControlManagerFacade facade = getFacade(delegate);
    assertSame("should return same array", policies, facade.getApplicablePolicies(principal));
}