title: how to override single bean defined in application context
body: <p>I have a web application which accesses an external web service. I'm writing an automated acceptance test suite for the web application. I do not want to invoke the external web service as it has serious overhead, I want to mock this web service. How can acheive this without changing the application context of the web application? We recently migrated to Spring 3.1 so I'm tempted to use the new environment features. Would these new feature help me in overriding this single web service and leave application context as it is? </p>