@Test
public void testFindBestWrapper() {

    final SessionFacade<Session> jcrSession = new SessionFacade<>(mock(Session.class), false);
    final Workspace jcrFacade =
            WorkspaceFacade.findBestWrapper(mock(Workspace.class), jcrSession);
    assertTrue("should be JcrWorkspaceFacade", jcrFacade instanceof JcrWorkspaceFacade);
    final SessionFacade<JackrabbitSession> jackSession = new SessionFacade<>(mock(JackrabbitSession.class), false);
    final Workspace jackFacade =
            WorkspaceFacade.findBestWrapper(mock(JackrabbitWorkspace.class), jackSession);
    assertTrue("should be JackrabbitWorkspaceFacade", jackFacade instanceof JackrabbitWorkspaceFacade);
    assertNull("null should return null", WorkspaceFacade.findBestWrapper(null, jcrSession));
}