Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
allowing for behavior stubbing and verification without relying on the real service layer logic. Setup method (@BeforeEach): Initializes test data before each test case. It creates Books objects representing a book before and after being saved, simulating data that would typically be handled by the