ObjectOutputStream coos = new ObjectOutputStream(excerpt.outputStream());
coos.writeObject(objects);
coos.close();
excerpt.index(0);
assertEquals(293, excerpt.remaining());
// a new ObjectInputStream is required for each record as they are not reusable :(
ObjectInputStream cois = new ObjectInputStream(excerpt.inputStream());
List objects2 = (List) cois.readObject();
assertEquals(objects, objects2);