FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException, ProxyException,
FilePersistenceTooBigForSerializationException {
session.open();
final IInstanceFactory instanceFactory = session.getInstanceFactory();
final Bob1 bob1 = (Bob1) instanceFactory.newInstance(Bob1.class);
session.save();
assertFalse("must not be loaded",
ProxyManager2.proxiedObjectIsLoaded(bob1));
saveDoneFlag = false;
final BobForAutoSaveWhenConstructTest bobForAutoSaveTest = (BobForAutoSaveWhenConstructTest) instanceFactory
.newInstance(BobForAutoSaveWhenConstructTest.class,
new Class[] { Bob1.class }, new Object[] { bob1 });
assertTrue(MUST_SAVE, saveDoneFlag);
session.setObject(KEY, bobForAutoSaveTest);
session.close();