### Question:
ListenerUtils { public static void success() { HiveMetricsHelper.incrementCounter(MetricsConstant.LISTENER_SUCCESSES); } private  ListenerUtils(); static void success(); static void error(Exception e);  }### Answer:
@Test public void success() { ListenerUtils.success(); CodahaleMetrics metrics = (CodahaleMetrics) MetricsFactory.getInstance(); Counter counter = metrics.getMetricRegistry() .counter(MetricsConstant.LISTENER_SUCCESSES); assertThat(counter.getCount()).isEqualTo(1L); }