@Test
public void testIsLive() {

    boolean result = true;
    expect(session.isLive()).andReturn(result);
    replay(session);
    replay(sessionFactory);
    assertEquals(jcrTemplate.isLive(), result);
}