OnrampMetrics { public void markValidationFailures(String roadName) { registry.counter("onramp.validation-failures", singleton(Tag.of(ROAD, roadName))).increment(); }  void markSuccessMetrics(String roadName, String message); void markSuccessMetrics(String roadName, long avroBytes); void markValidationFailures(String roadName); void markFailureMetrics(String roadName);  }
@Test public void markValidationFailures() { underTest.markValidationFailures(ROAD_NAME); assertThat(validationFailures.get().count(), is(1.0)); }