public void addTimeline(TimelineEvent event) {
    if (timeline.add(event)) {
      synced = false;
    }
  }
@Test
  public void testAddDuplicateTimelineEvents() throws Exception {
    StepRuntimeSummary summary =
        loadObject(
            "fixtures/execution/sample-step-runtime-summary-1.json", StepRuntimeSummary.class);
    TimelineEvent event = TimelineLogEvent.info("hello world");
    summary.addTimeline(event);
    summary.addTimeline(TimelineLogEvent.info("hello world"));
    summary.addTimeline(TimelineLogEvent.info("hello world"));
    summary.addTimeline(TimelineLogEvent.info("hello world"));
    assertEquals(2, summary.getTimeline().getTimelineEvents().size());
    assertEquals(event, summary.getTimeline().getTimelineEvents().get(1));
  }