@Test
public void testSetSessionFactory() throws RepositoryException {

    // sessCtrl.expectAndReturn(sess.getRepository(), repository,
    // MockControl.ONE_OR_MORE);
    // sfCtrl.expectAndReturn(sf.getSession(), sess);
    replay(sessionFactory);
    replay(session);
    JcrDaoSupport dao = new JcrDaoSupport() {
    };
    dao.setSessionFactory(sessionFactory);
    assertEquals(dao.getSessionFactory(), sessionFactory);
}