}
@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.",
seq.get(i).getArray(),
outputSeq.get(i).getArray(), 1E-6);
}
}