title: Creating spring bean in xml configuration for an interface without concrete implementation
body: <p>In my Spring 3.x application, I've couple of interfaces for which implementation is provided by some 3rd party libs included at run time. For the sake for development and unit testing, I'd like to inject some mock/dummy implementation of these interface. One obvious way to do is to define a concrete class implementing these interface and have it my test sources. Since I just want dummy classes for injection purpose, I was wondering if there is a way in Spring XML configuration through which I can define a <code>&lt;bean&gt;</code> element providing the interface class and let spring create a proxy class from that interface and inject it?</p>
  
  <p>I know I can do this with mockito like following, but in certain case I dont/cant use mockito and would like to see if this is possible only with Spring. </p>
  
  <p><code>&lt;bean name="someServiceImpl" class="org.mockito.Mockito" factory-method="mock"&gt;
    &lt;constructor-arg value="foo.bar.SomeService" /&gt;
  &lt;/bean&gt;</code></p>