@Test
public void computeTotalPauseTime() {

    List<GcEvent> gcEvents = new ArrayList<>();
    gcEvents.add(new GcEvent(100, 1000));
    gcEvents.add(new GcEvent(1050, 1750));
    gcEvents.add(new GcEvent(62500, 65000));
    long totalPauseTime = ProtobufGCNotifications.computeTotalPauseTime(gcEvents, new GcEvent(67500, 69000));
    Assert.assertEquals(4000, totalPauseTime);
}