FilePersistenceTooBigForSerializationException, ProxyException {
final IInstanceFactory instanceFactory = session.getInstanceFactory();
assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
session.open();
BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
.newInstance(instanceFactory);
BobAsDelegateNotifyDelegating delegate = bob.getDelegate();
final long delegateDataRecordIdentifier = ProxyManager2
.getObjectAndPersistInfo(delegate).dataRecordIdentifier.value;
bob = null;// NOPMD unreference
session.close(EnumFilePersistenceCloseAction.DO_NOT_SAVE);
session.open();
delegate = (BobAsDelegateNotifyDelegating) session
.getObject(delegateDataRecordIdentifier);
bob = delegate.getBobASDelegatingListenDelegate();
assertNotNull("bob is in bad state", bob.getDelegate());
}