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