@Override
  public ValidationFailure addFailure(String message, @Nullable String correctiveAction) {
    ValidationFailure validationFailure = new ValidationFailure(message, correctiveAction);
    failuresCollection.add(validationFailure);

    return validationFailure;
  }
@Test
  public void addFailure() {
    /** arrange */
    FailureCollectorWrapper failureCollectorWrapper = new FailureCollectorWrapper();

    /** act */
    RuntimeException error = new RuntimeException("An error has occurred");
    failureCollectorWrapper.addFailure(error.getMessage(), null);

    /** assert */
    assertThrows(ValidationException.class, () -> failureCollectorWrapper.getOrThrowException());
  }