Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
(@BeforeEach method): Initializes common objects used across multiple tests, such as a sample Books object and a list of books, to avoid repetition in each test method. Test Methods: Save Test: Verifies that a book can be successfully saved through the service. It mocks the repository’s save method