I am creating a Junit Test using CamelTestSupport
. The Camel Route has few references to POJO Beans and OSGI references.The OSGI reference is an Interface.I had used SimpleRegistry
to capture the POJO beans using Java DSL. However, I do not know how to add OSGI reference or OSGIServiceRegistry
for the purpose.
How do I had OSGI reference and POJO Beans along with the OSGI references in the registry so that CamelTestSupport
can trigger the test method?
For reference-
Camel version - 2.13.2
Junit version - 4.11