/**
   * Parameterized test case to check the message text for the specified number of warnings and
   * files.
   *
   * @param numberOfFixedWarnings the number of fixed warnings
   * @param numberOfNewWarnings the number of new warnings
   * @param expectedMessage the expected message
   */
  private void checkDeltaText(
      final int numberOfFixedWarnings,
      final int numberOfNewWarnings,
      final String expectedMessage) {
    DryResult result = mock(DryResult.class);
    when(result.getNumberOfFixedWarnings()).thenReturn(numberOfFixedWarnings);
    when(result.getNumberOfNewWarnings()).thenReturn(numberOfNewWarnings);

    Assert.assertEquals(
        "Wrong delta message created.", expectedMessage, ResultSummary.createDeltaMessage(result));
  }