### Question:
SimpleSessionContext implements SessionContext { public void releaseSession() { sessionHolder.remove(); } SimpleSessionContext(SessionFactory sessionFactory); @Override Session getCurrentSession(); Session getOrCreateSession(); void releaseSession();  }### Answer:
@Test public void ReleaseSession() { assertNull(sessionContext.getCurrentSession()); assertNotNull(sessionContext.getOrCreateSession()); assertNotNull(sessionContext.getCurrentSession()); sessionContext.releaseSession(); assertNull(sessionContext.getCurrentSession()); }