Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Object> getById(@PathVariable("id") String id) { try { Books bookById = this.bookService.findById(id); return ResponseEntity.ok(bookById); } catch (Exception exception) { return ResponseEntity.internalServerError().body(