@Test
public void testGetValueFactory() throws RepositoryException {

    ValueFactory result = createMock(ValueFactory.class);
    expect(session.getValueFactory()).andReturn(result);
    replay(session);
    replay(sessionFactory);
    assertSame(jcrTemplate.getValueFactory(), result);
}