ShutdownActor { public void forceShutdown(final ForceShutdownRequestMessage message) throws ReadValueException, ResolutionException, UpCounterCallbackExecutionException, IllegalUpCounterState { resolveUpCounter(message.getUpCounterName()).forceShutdown(); }  void shutdown(final ShutdownRequestMessage message); void forceShutdown(final ForceShutdownRequestMessage message);  }
@Test public void Should_performForceShutdownRequest() throws Exception { new ShutdownActor().forceShutdown(new ForceShutdownRequestMessage() { @Override public Object getUpCounterName() throws ReadValueException { return "a upcounter"; } }); verify(upCounterMock).forceShutdown(); }