The issue regarding testing persistence with an in-memory database is resolved. However, we still need to consider some other aspects of the test, such as simulating HTTP responses from other services or integration with a service discovery. When you implement some tests for microservices, you may choose between two typical approaches to a service discovery. The first of these is to embed the discovery server to the application during the test case execution, and the second is just to disable discovery on the client side. The second option is relatively easy to configure with Spring Cloud. For the Eureka Server, it can be disabled using the eureka.client.enabled=false property.
This is only the ...