SessionManagerImpl implements SessionManager { @Override public Session getValidSession( String sessionId ) { Session sc = sessionContext.get( sessionId ); if ( sc != null ) { return sc; } else { return null; } } SessionManagerImpl( IdentityDataService identityDataService ); @Override void startSessionController(); @Override void stopSessionController(); @Override Session startSession( String sessionId, Session userSession, User user ); @Override Session getValidSession( String sessionId ); @Override void extendSessionTime( Session userSession ); @Override void extendSessionTime( String sessionId ); @Override void endSession( String sessionId ); @PermitAll @Override void invalidateSessions( Date currentDate ); @Override int getSessionTimeout(); static void setSessionTimeout( final int sessionTimeout ); @Override Map getSessionContext();  }
@Test public void testGetValidSession() { Session validSession = sessionManager.getValidSession(sessionId); assertEquals(session , validSession); }