SuspensionCommandHandler { @HandlesSystemCommand(SUSPEND) public void onSuspendRequested(final SuspendCommand suspendCommand, final UUID commandId) { doRun(suspendCommand, commandId); }  @HandlesSystemCommand(SUSPEND) void onSuspendRequested(final SuspendCommand suspendCommand, final UUID commandId); @HandlesSystemCommand(UNSUSPEND) void onUnsuspendRequested(final UnsuspendCommand unsuspendCommand, final UUID commandId);  }
@Test public void shouldRunSuspension() throws Exception { final UUID commandId = randomUUID(); final SuspendCommand suspendCommand = new SuspendCommand(); final InOrder inOrder = inOrder(logger, suspensionBean); suspensionCommandHandler.onSuspendRequested(suspendCommand, commandId); inOrder.verify(logger).info("Received SUSPEND application command"); inOrder.verify(suspensionBean).runSuspension(commandId, suspendCommand); }