Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
this.mockMvc.perform(get("/api/v1/books/123")).andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE)) .andExpect(jsonPath("$.title").value("this is the sample title")) .andExpect(jsonPath("$.authors[0]").value("Pavan Mantha")); } @Test void