private void verifyParent(TimerEvent timerEvent, TimerEvent.Timer expectedParentTimer) {
    Assert.assertTrue(timerEvent.getTimer().getParent().isPresent());
    Assert.assertSame(expectedParentTimer, timerEvent.getTimer().getParent().get());
  }
Verifies that the {@code timerEvent}'s timer has parent {@code expectedParentTimer}.

@param timerEvent the {@link TimerEvent} to verify
@param expectedParentTimer the expected parent timer
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java