*/
public class PreAuthenticatedSessionTest {
@Test
public void testSessionStore() {
PreAuthenticatedSessionHolder holder = new PreAuthenticatedSessionHolder();
IPentahoSession session = new StandaloneSession();
PentahoSessionHolder.setSession( session );
String key = holder.captureSession();
assertNotNull( key );
PentahoSessionHolder.setSession( session );
assertTrue( holder.restoreSession( key ) );
IPentahoSession outSession = PentahoSessionHolder.getSession();
assertEquals( outSession, session );
holder.close();
}