Error creating bean with name 'be.solidsyntax.ConsumingService':
Injection of resourcedependencies failed;
nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException:
Bean named 'dependency' is expected to be of type 'be.solidsyntax.Dependency'
but was actually of type 'com.sun.proxy.$Proxy121'
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor
.postProcessProperties(CommonAnnotationBeanPostProcessor.java:324)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:1411)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:391)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener
.injectDependencies(DependencyInjectionTestExecutionListener.java:119)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener
.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
at org.springframework.boot.test.autoconfigure
.SpringBootDependencyInjectionTestExecutionListener
.prepareTestInstance(SpringBootDependencyInjectionTestExecutionListener.java:44)