@Test(expected = IllegalStateException.class)
public void testGetRootNode() throws Exception {

    final Session session = mock(Session.class);
    doThrow(new IllegalStateException("expect me")).when(session).getRootNode();
    new JcrSessionFacade(session, false).getRootNode();
}