PentahoSessionHolder.setSession( session );
PreAuthenticatedSessionHolder holder = new PreAuthenticatedSessionHolder( 1, 1 );
String key = holder.captureSession();
assertTrue( holder.restoreSession( key ) );
try {
Thread.sleep( 3000 );
} catch ( InterruptedException e ) {
//ignored
}