"\n2012-07-26T14:58:58.320+0200Application time: 0.0000221 seconds" +
"\n: 7.907: [GC concurrent-mark-start]")
.getBytes());
final DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_7G1);
GCModel model = reader.read();
assertEquals("count", 2, model.size());
assertThat("gc type (0)", "GC concurrent-root-region-scan-end", equalTo(model.get(0).getTypeAsString()));
assertThat("gc timestamp (0)", model.get(0).getTimestamp(), closeTo(3.1, 0.01));
assertThat("gc type (1)", "GC concurrent-mark-start", equalTo(model.get(1).getTypeAsString()));
// should be 7.907, but line starts with ":", so timestamp of previous event is taken
assertThat("gc timestamp (1)", model.get(1).getTimestamp(), closeTo(3.1, 0.0001));
assertThat("number of errors", handler.getCount(), is(0));
}