### Question:
LocalSessionPool { public synchronized OperationContext acquireSession() { final LocalSession localSession = sessionStack.isEmpty() ? createSession() : sessionStack.pop(); return new OperationContext( globalSession, localSession.nextOperationId(), localSession ); } LocalSessionPool( GlobalSession globalSession ); GlobalSession getGlobalSession(); synchronized OperationContext acquireSession(); synchronized void releaseSession( OperationContext operationContext ); synchronized long openSessionCount();  }### Answer:
@Test public void poolHasIndependentSessions() { LocalSessionPool sessionPool = new LocalSessionPool( globalSession ); OperationContext contextA = sessionPool.acquireSession(); OperationContext contextB = sessionPool.acquireSession(); assertNotEquals( contextA.localSession(), contextB.localSession() ); }