@Override
  public void setIntValue(String metricKey, int line, int value) {
    checkNotNull(metricKey);
    checkLineRange(line);

    setValue(metricKey, line, value);
  }
@Test
  public void validateLineGreaterThanZero() {
    assertThatThrownBy(() -> fileLineMeasures.setIntValue(HITS_METRIC_KEY, 0, 2))
      .hasMessage("Line number should be positive for file src/foo.php.");
  }