### Question:
SimpleSessionContext implements SessionContext { public Session getOrCreateSession() { if (sessionHolder.get() == null) { Session session = sessionFactory.openSession(); sessionHolder.set(session); return session; } else { return sessionHolder.get(); } } SimpleSessionContext(SessionFactory sessionFactory); @Override Session getCurrentSession(); Session getOrCreateSession(); void releaseSession();  }### Answer:
@Test public void GetOrCreateSession() { assertNull(sessionContext.getCurrentSession()); assertNotNull(sessionContext.getOrCreateSession()); assertNotNull(sessionContext.getCurrentSession()); }