Issue: Added New Mule configuration file to existing API project in Mule 3. Received below error while running Munit test suit in project:

springframework.beans.factory.BeanCreationException: Error creating bean with name ”: Cannot create inner bean ‘(inner bean)#’ of type [org.mule.config.spring.factories.FlowRefFactoryBean] while setting bean property ‘ with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException:

Fix: Add new Mule flow file to Spring Beans configuration in Unit test suite. Below is the sample entry:

<spring:beans>
<spring:import resource="calsspath:<<Mule flow config file name>>"/>
</spring:beans>