DataReader reader = new DataReaderJRockit1_6_0(in);
GCModel model = reader.read();
assertEquals("count", 3, model.size());
GCEvent event = (GCEvent) model.get(0);
assertEquals("timestamp", 124.644, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_16_YOUNG_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 453996, event.getPreUsed());
assertEquals("after", 188846, event.getPostUsed());
assertEquals("total", 786432, event.getTotal());
assertEquals("pause", 0.055369, event.getPause(), 0.0000001);
// generational algorithms have information about the generation sizing in the introduction of the gc log
// -> check that it is present in the event
event = event.getYoung();
assertEquals("total", 393216, event.getTotal());
event = (GCEvent) model.get(2);
assertEquals("timestamp", 148.254, event.getTimestamp(), 0.000001);
assertEquals("name", Type.JROCKIT_16_OLD_GC.getName(), event.getExtendedType().getName());
assertEquals("before", 691255, event.getPreUsed());
assertEquals("after", 279876, event.getPostUsed());
assertEquals("total", 786432, event.getTotal());
assertEquals("pause", 0.086713, event.getPause(), 0.0000001);
// generational algorithms have information about the generation sizing in the introduction of the gc log
// -> check that it is present in the event
GCEvent eventTenured = event.getTenured();
assertEquals("total", 786432 - 393216, eventTenured.getTotal());
GCEvent eventYoung = event.getYoung();
assertEquals("total", 393216, eventYoung.getTotal());
assertEquals("number of warnings", 0, handler.getCount());
}