@Test
public void testRefresh() throws RepositoryException {

    boolean refreshMode = true;
    session.refresh(refreshMode);
    replay(session);
    replay(sessionFactory);
    jcrTemplate.refresh(refreshMode);
}