StatelessSession session = getSession();
// I've not specified any identifiers, so it should do them alll
session.setGlobalExporter( new ReferenceOriginalGlobalExporter() );
StatelessSessionResult result = session.executeWithResults( (Object) null );
assertSame( this.list,
result.getGlobal( "list" ) );
// cheesery should be null
assertSame( this.cheesery,
result.getGlobal( "cheesery" ) );
assertSame( this.globalResolver, result.getGlobalResolver() );
}