Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
{ private final BookService bookService; public BooksController(BookService bookService) { this.bookService = bookService; } @PostMapping(value = "/books", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Object> save(@RequestBody Books