OrderController { @GetMapping("/create") public ResponseResult makeOrder(){ return orderService.orderWithVersion(new OrderRequest()); }  @GetMapping("/create") ResponseResult makeOrder();  }
@Test void makeOrder() { ResponseEntity<ResponseResult> responseEntity = restTemplate.getForEntity(APP_URL + "/order/create", ResponseResult.class); Assertions.assertEquals(HttpStatus.OK, responseEntity.getStatusCode()); ResponseResult responseResult = responseEntity.getBody(); Assertions.assertTrue(responseResult.isSuccessful()); }