FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException,
FilePersistenceTooBigForSerializationException {
final IDataAccessSession session = filePersistence
.createDataAccessSession();
BobContainer bob = new BobContainer();
bob.setObject1(Integer.valueOf(0));
session.open();
session.setObject("bob", bob);
session.close(EnumFilePersistenceCloseAction.SAVE);
session.open();
bob = (BobContainer) session.getObject("bob");
session.close(EnumFilePersistenceCloseAction.SAVE);
try {
bob.getObject1();
fail("must have exception");// NOPMD
} catch (final Throwable throwable) {// NOPMD
// normal case must failed get object
}
}