@Test
public void testFindBestWrapper() {

    assertNull("just null", AccessControlManagerFacade.findBestWrapper(null));
    AccessControlManager jcrDelegate = mock(AccessControlManager.class);
    AccessControlManager jcrFacade = AccessControlManagerFacade.findBestWrapper(jcrDelegate);
    assertTrue("is facade", jcrFacade instanceof AccessControlManagerFacade);
    assertFalse("is not jackrabbit facade", jcrFacade instanceof JackrabbitAccessControlManagerFacade);
    AccessControlManager jackDelegate = mock(JackrabbitAccessControlManager.class);
    AccessControlManager jackFacade = AccessControlManagerFacade.findBestWrapper(jackDelegate);
    assertTrue("is jackrabbit facade", jackFacade instanceof JackrabbitAccessControlManagerFacade);
}