### Question:
BeaconChainRequestCounter { public void onSuccess() { recordRequest(RequestOutcome.SUCCESS); } BeaconChainRequestCounter(final LabelledMetric<Counter> counter); static BeaconChainRequestCounter create(
      final MetricsSystem metricsSystem, final String name, final String help); void onSuccess(); void onDataUnavailable(); void onError();  }### Answer:
@Test public void shouldIncrementSuccessCounter() { counter.onSuccess(); assertThat(getValue(RequestOutcome.SUCCESS)).isEqualTo(1); assertThat(getValue(RequestOutcome.ERROR)).isZero(); assertThat(getValue(RequestOutcome.DATA_UNAVAILABLE)).isZero(); }