out.close();
final ObjectInput in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
final Movies readMovies = new Movies();
readMovies.readExternal(in);
readMovies.readExternal(in);
readMovies.readExternal(in);
assertFalse(readMovies.isEmpty());
assertEquals(timestamp, readMovies.getTimestamp());
assertEquals(1, readMovies.findByTitle(titleG).length);
assertEquals(movieOne, readMovies.findByTitle(titleG)[0]);
assertEquals(3, readMovies.findByTitle(titleH).length);