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