Spring Boot Auto configuration unit test
Background:
I created my own Spring Boot starter auto-configuration and I want to test it. In the dev profile, the injected RestTemplate is common and not enhanced by load balancing. In the test profile, this RestTemplate is annotated with @LoadBalanced and can use the discovery client functionality.