This is my sample which does the job:
<!-- Create object with mocked parts that not used. -->
<bean id="config" class="org.Config">
<constructor-arg>
<bean class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="javax.sql.DataSource"/>
</bean>
</constructor-arg>
<property name="day" value="6"/>
</bean>
Update pom.xml with:
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
It works with:
<spring.version>3.0.0.RELEASE</spring.version>
dataSourceexpected.