@Test
public void testPartialToSpaceOverflowInitialMark() throws Exception {
// special type of GC: 0.838: "[GC pause (partial) (to-space overflow) (initial-mark)..."
InputStream in = getInputStream("SampleSun1_6_0G1_partial_initialMarkToSpaceOverflow.txt");
DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
GCModel model = reader.read();
assertEquals("nummber of events", 2, model.size());
assertEquals("concurrent event type", Type.G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());
assertEquals("number of pauses", 1, model.getPause().getN());
assertEquals("gc pause sum", 0.00588343, model.getPause().getSum(), 0.000000001);
assertEquals("gc memory", 255*1024 - 197*1024, model.getFreedMemoryByGC().getMax());
assertEquals("max memory", 256*1024, model.getFootprint());
}