String version = String.valueOf(annotation.version());
ObjectOutputStream output = TestStreamBuilder.createOutputStream(className, version);
output.writeObject(subSandwich);
output.close();
ObjectInputStream input = TestStreamBuilder.createInputStream(className, version);
SubSandwich actualSandwich = (SubSandwich) input.readObject();
input.close();
assertEquals(subSandwich.getSlicesOfBread(), actualSandwich.getSlicesOfBread());
assertEquals(subSandwich.getSesameSeeds(), actualSandwich.getSesameSeeds());
assertEquals(subSandwich.getSlicesOfMeat(), actualSandwich.getSlicesOfMeat());
assertEquals(subSandwich.getMolecules(), actualSandwich.getMolecules());
assertEquals(subSandwich.getPrice(), actualSandwich.getPrice(), 0.0);
assertEquals(subSandwich.getSize(), actualSandwich.getSize());
assertEquals(subSandwich.getName(), actualSandwich.getName());
assertEquals(subSandwich.getLength(), actualSandwich.getLength(), 0.0f);
assertEquals(subSandwich.isActuallyFresh(), actualSandwich.isActuallyFresh());
}