I\'ve got a Spring component I\'d like to test and this component has an autowired attribute which I need to change for the purpose of unit testing. The problem is, that the
You can provide a new testContext.xml in which the @Autowired bean you define is of the type you need for your test.
@Autowired