@Test
public void testRefresh() throws RepositoryException {

    Session session = mock(Session.class);
    doThrow(new RepositoryException("should not be thrown when protected")).when(session).refresh(anyBoolean());
    JcrSessionFacade facade = new JcrSessionFacade(session, false);
    facade.refresh(true);
    facade.refresh(false);
}