ProcessInstanceManagementRestController extends BaseProcessInstanceManagementResource<ResponseEntity> { @Override public <R> ResponseEntity buildOkResponse(R body) { return ResponseEntity.ok(body); } @Autowired  ProcessInstanceManagementRestController(Processes processes, Application application); @Override ResponseEntity buildOkResponse(R body); @Override ResponseEntity badRequestResponse(String message); @Override ResponseEntity notFoundResponse(String message); @Override @GetMapping(value = "{processId}/nodes", produces = APPLICATION_JSON_VALUE) ResponseEntity getProcessNodes(@PathVariable("processId") String processId); @Override @GetMapping(value = "{processId}/instances/{processInstanceId}/error", produces = APPLICATION_JSON_VALUE) ResponseEntity getInstanceInError(@PathVariable("processId") String processId,
                                             @PathVariable("processInstanceId") String processInstanceId); @Override @GetMapping(value = "{processId}/instances/{processInstanceId}/nodeInstances", produces = APPLICATION_JSON_VALUE) ResponseEntity getWorkItemsInProcessInstance(@PathVariable("processId") String processId, @PathVariable("processInstanceId") String processInstanceId); @Override @PostMapping(value = "{processId}/instances/{processInstanceId}/retrigger", produces = APPLICATION_JSON_VALUE) ResponseEntity retriggerInstanceInError(@PathVariable("processId") String processId, @PathVariable(
            "processInstanceId") String processInstanceId); @Override @PostMapping(value = "{processId}/instances/{processInstanceId}/skip", produces = APPLICATION_JSON_VALUE) ResponseEntity skipInstanceInError(@PathVariable("processId") String processId, @PathVariable("processInstanceId") String processInstanceId); @Override @PostMapping(value = "{processId}/instances/{processInstanceId}/nodes/{nodeId}", produces = APPLICATION_JSON_VALUE) ResponseEntity triggerNodeInstanceId(@PathVariable("processId") String processId, @PathVariable("processInstanceId") String processInstanceId, @PathVariable("nodeId") String nodeId); @Override @PostMapping(value = "{processId}/instances/{processInstanceId}/nodeInstances/{nodeInstanceId}", produces = APPLICATION_JSON_VALUE) ResponseEntity retriggerNodeInstanceId(@PathVariable("processId") String processId, @PathVariable("processInstanceId") String processInstanceId, @PathVariable("nodeInstanceId") String nodeInstanceId); @Override @DeleteMapping(value = "{processId}/instances/{processInstanceId}/nodeInstances/{nodeInstanceId}", produces = APPLICATION_JSON_VALUE) ResponseEntity cancelNodeInstanceId(@PathVariable("processId") String processId, @PathVariable("processInstanceId") String processInstanceId, @PathVariable("nodeInstanceId") String nodeInstanceId); @Override @DeleteMapping(value = "{processId}/instances/{processInstanceId}", produces = APPLICATION_JSON_VALUE) ResponseEntity cancelProcessInstanceId(@PathVariable("processId") String processId, @PathVariable("processInstanceId") String processInstanceId);  }
@Test void buildOkResponse() { ResponseEntity responseEntity = tested.buildOkResponse(body); assertResponse(responseEntity, HttpStatus.OK, body); }