SubstitutedBob substitutedBob = new SubstitutedBob(2);
substitutedBob.setObject1(BONJOUR);
bobContainer.setObject2(substitutedBob);
session.close(EnumFilePersistenceCloseAction.SAVE);
session.open();
bobContainer = (BobContainer) session.getObject(KEY);
assertNotNull(BAD_BOB_CONTAINER_OBJECT1, bobContainer.getObject1());
bob = (SubstitutedBob) bobContainer.getObject1();
assertEquals(BAD_BOB_IDENTIFIER, 1, bob.getIdentifier());
assertEquals(BAD_BOB_OBJECT, HELLO, bob.getObject1());