@JsonTest with JacksonTester write(view) -> {"isbn":"9780134685991","title":"Effective Java","author":"Joshua Bloch","price":"INR 499.00","published_on":"2018-01-06"} parseObject(...).price() -> Price[currency=INR, amount=499.00] beans in this context: BookController (@RestController)=no ApiExceptionHandler (@ControllerAdvice)=no PriceJson (@JacksonComponent)=yes MockMvc=no JsonMapper (Jackson 3)=yes BookService (@Service)=no BookRepository (Spring Data)=no EntityManagerFactory=no DataSource=no RestClient.Builder=no IsbnLookupClient (@Component)=no AuditLogger (@Component)=no bean definitions=35