final IDataAccessSession session = filePersistence
.createDataAccessSession();
session.open();
SubstitutionContainerSerializableReadWriteObject bobContainer =
/**/new SubstitutionContainerSerializableReadWriteObject();
final SubstitutedBobSerialize1 bob = new SubstitutedBobSerialize1(1);
bobContainer.setObject(bob);
session.setObject(KEY, bobContainer);
session.close(EnumFilePersistenceCloseAction.SAVE);
session.open();
bobContainer = (SubstitutionContainerSerializableReadWriteObject) session
.getObject(KEY);
assertNotNull(BAD_BOB_CONTAINER_OBJECT1, bobContainer.getObject());
final SubstitutedBobSerialize1 bobRead = (SubstitutedBobSerialize1) bobContainer
.getObject();
assertEquals(BAD_BOB_IDENTIFIER, 1, bob.getIdentifier());
assertSame(READ_OBJECT_MUST_BE_THE_WROTE_OBJECT, bob, bobRead);
session.close(EnumFilePersistenceCloseAction.SAVE);