@Test
  public void testType() {
    // Used to test whether or not progress event was consumed
    boolean[] called = new boolean[] {false};
    Consumer<ProgressEvent> buildImageConsumer =
        progressEvent -> {
          called[0] = true;
        };

    EventHandlers eventHandlers = makeEventHandlers(buildImageConsumer);
    eventHandlers.dispatch(new ProgressEvent(AllocationTree.child1, 50));
    Assert.assertTrue(called[0]);
  }
Second child of the root node.
jib-core/src/test/java/com/google/cloud/tools/jib/event/events/ProgressEventTest.java