### Question:
CommandController { @PostMapping("/commands/prepare") public ResponseEntity<?> prepareCommand(@RequestBody final TransporterCommand command) { this.commandOrchestrator.prepare(commandMapper.transform(command)); return new ResponseEntity<>( HttpStatus.ACCEPTED ); } @Autowired  CommandController(
        final CommandMapper commandMapper,		
        final CommandOrchestrator commandOrchestrator,
        final CommandRepository commandRepository
    ); @PostMapping("/commands") ResponseEntity<?> createCommand(@RequestBody final TransporterCommand command); @PostMapping("/commands/{commandId}/restart") ResponseEntity<?> restartCommand(@PathVariable("commandId") final String commandId); @PostMapping("/commands/prepare") ResponseEntity<?> prepareCommand(@RequestBody final TransporterCommand command);  }### Answer:
@Test public void testPrepareCommand() { final TransporterCommand command = mock(TransporterCommand.class); final ResponseEntity<?> result = commandControllerUnderTest.prepareCommand(command); assertEquals(result.getStatusCode(), HttpStatus.ACCEPTED); verify(mockCommandOrchestrator).prepare(any(InboundCommand.class)); }