### Question:
StopwatchMXBeanImpl extends AbstractSimonMXBeanImpl implements StopwatchMXBean { @Override public boolean stopIncrementalSampling(String key) { return stopwatch.stopIncrementalSampling(key); } StopwatchMXBeanImpl(Stopwatch stopwatch); @Override long getTotal(); @Override final long getLast(); @Override final String getLastAsString(); @Override long getCounter(); @Override long getMax(); @Override long getMin(); @Override long getMaxTimestamp(); @Override long getMinTimestamp(); @Override long getActive(); @Override long getMaxActive(); @Override long getMaxActiveTimestamp(); @Override double getMean(); @Override double getStandardDeviation(); @Override double getVariance(); @Override double getVarianceN(); @Override final StopwatchSample sample(); @Override StopwatchSample sampleIncrement(String key); @Override final String getType(); @Override boolean stopIncrementalSampling(String key);  }### Answer:
@Test public void testStopIncrementSampling() { String key = "key"; when(stopwatch.stopIncrementalSampling(key)).thenReturn(true); boolean actual = stopwatchMXBean.stopIncrementalSampling(key); Assert.assertTrue(actual); verify(stopwatch).stopIncrementalSampling(key); }