@Test
public void testFindBestWrapper() {

    final Session session = mock(Session.class);
    Session jcrFacade = SessionFacade.findBestWrapper(session, true);
    assertFalse("find best wrapper jcr", jcrFacade instanceof JackrabbitSession);
    final Session jackSession = mock(JackrabbitSession.class);
    Session jackrabbitFacade = SessionFacade.findBestWrapper(jackSession, true);
    assertTrue("find best wrapper jackrabbit", jackrabbitFacade instanceof JackrabbitSession);
    assertNull("find best wrapper null", SessionFacade.findBestWrapper(null, true));
}