private void updateCompletionMap(Allocation allocation, long units) {
    if (allocationCompletionMap.containsKey(allocation)) {
      units += allocationCompletionMap.get(allocation);
    }
    allocationCompletionMap.put(allocation, units);

    if (allocation.getAllocationUnits() == units) {
      allocation
          .getParent()
          .ifPresent(parentAllocation -> updateCompletionMap(parentAllocation, 1));
    }
  }
Updates the {@link #allocationCompletionMap} with {@code units} more progress for {@code
allocation}. This also updates {@link Allocation} parents if {@code allocation} is complete in
terms of progress.

@param allocation the allocation the progress is made on
@param units the progress units
jib-core/src/test/java/com/google/cloud/tools/jib/event/events/ProgressEventTest.java