Test service that uses eureka and ribbon
<p>I'm building an application using microservices with the netflix stack and spring boot. One thing that bugs me is that I have no integration tests yet, where I can mock the surrounding services.</p>

<p>So, I have service A which is a eureka client with ribbon to resolve the eureka name to the URL of a registered service B during a call.</p>

<p>So ideally I want to start the application with the integrationtest annotations of spring boot, use wiremock to simulate the service B and then call the method of service A, this should call my mocked service B using the symbolic name of the service.</p>

<p>Did anyone already solve this? I have searched for blog entries etc. of people doing this already, but couldn't find any...</p>

<p>I know of the SO article <a href="https://stackoverflow.com/questions/34397570/mock-an-eureka-feign-client-for-unittesting">Mock an Eureka Feign Client for Unittesting</a> but as far as I can see this just prevents the discovery client from complaining.</p>