@Test
public void testGetItem() throws RepositoryException {

    String path = "path";
    Item result = createMock(Item.class);
    expect(session.getItem(path)).andReturn(result);
    replay(session);
    replay(sessionFactory);
    assertSame(jcrTemplate.getItem(path), result);
}