writer.addAll(seq);
}
@Test
public void compareWrittenWithPreviouslyRed() throws IOException {
DcdReader reader = new DcdReader(output);
IDataSequence outputSeq = reader.load();
assertTrue("length of input and output", seq.size() == outputSeq.size());
int size = seq.size();
for(int i = 0; i < size; i++) {
assertArrayEquals("trajectory with index " + i + " differs.",