@Override
  public ArrayList<ValidationFailure> getValidationFailures() {
    return this.failuresCollection;
  }
@Test
  public void getValidationFailures() {
    /** arrange */
    FailureCollectorWrapper failureCollectorWrapper = new FailureCollectorWrapper();
    String errorMessage = "An error has occurred";

    FailureCollectorWrapper emptyFailureCollectorWrapper = new FailureCollectorWrapper();

    RuntimeException error = new RuntimeException(errorMessage);
    failureCollectorWrapper.addFailure(error.getMessage(), null);

    /** act */
    ArrayList<ValidationFailure> exceptionCollector =
        failureCollectorWrapper.getValidationFailures();
    ArrayList<ValidationFailure> emptyExceptionCollector =
        emptyFailureCollectorWrapper.getValidationFailures();

    /** assert */
    assertEquals(1, exceptionCollector.size());
    assertEquals(errorMessage, exceptionCollector.get(0).getMessage());
    assertEquals(0, emptyExceptionCollector.size());
  }