FilePersistenceNotSerializableException,
FilePersistenceTooBigForSerializationException {
final IInstanceFactory instanceFactory = session.getInstanceFactory();
session.open();
saveDoneFlag = false;
BobASWithTransientCaller bob = BobASWithTransientCaller.newInstance(
instanceFactory, false);
assertTrue(MUST_SAVE, saveDoneFlag);
saveDoneFlag = false;
bob.action();
assertTrue(MUST_SAVE, saveDoneFlag);
session.setObject(KEY, bob);
bob = null;// NOPMD
session.close();
session.open();
bob = (BobASWithTransientCaller) session.getObject(KEY);
bob.action();
session.close();
}