ProcessManagerWrapper implements ProcessManager<R> { @Override public Map<UUID, List<LongRunningProcessStatus>> stop(Map<UUID, List<UUID>> procIds, boolean clear) { return delegate.stop(procIds, clear); } ProcessManagerWrapper(ProcessManager<T> delegate); @Override Map<UUID, List<UUID>> start(List<R> specifications); @Override Map<UUID, List<LongRunningProcessStatus>> ping(Map<UUID, List<UUID>> procIds); @Override Map<UUID, List<LongRunningProcessStatus>> stop(Map<UUID, List<UUID>> procIds, boolean clear); @Override Map<UUID, List<LongRunningProcessStatus>> clear(Map<UUID, List<UUID>> procIds);  }
@Test public void testStop() { Map<UUID, List<UUID>> procIds = Collections.emptyMap(); wrapper.stop(procIds, true); verify(delegate).stop(eq(procIds), eq(true)); }