verifyNoMoreInteractions(mockMetricRegistry, mockScheduledReporter, mockHistogramBuilder, mockHistogram);
}
@Test
public void testUpdateMetricAlreadyPresent() {
final Histogram mockHistogram = mock(Histogram.class);
final Map<String, Histogram> map = new HashMap<String, Histogram>();
map.put(METRIC_NAME, mockHistogram);
final SortedMap<String, Histogram> metricMap = ImmutableSortedMap.copyOf(map);
when(mockMetricRegistry.getHistograms()).thenReturn(metricMap);