TombstoneSizeMetricListener extends AbstractLongValueMetricListener<TombstoneSizeActionContext> implements TombstoneSizeCheckListener, BiDirectionSupport { @Override protected String getMetricType() { return METRIC_TYPE; }    }
@Test public void testOnAction() throws Exception { Mockito.doAnswer(invocation -> { MetricData point = invocation.getArgumentAt(0, MetricData.class); Assert.assertEquals(TombstoneSizeMetricListener.METRIC_TYPE, point.getMetricType()); Assert.assertEquals(tombstoneSize, point.getValue(), DOUBLE_DELTA); return null; }).when(proxy).writeBinMultiDataPoint(Mockito.any()); listener.onAction(context); Assert.assertTrue(listener.worksfor(context)); Mockito.verify(proxy, Mockito.times(1)).writeBinMultiDataPoint(Mockito.any()); }