protected AbstractXmlApplicationContext applicationContext;
protected CamelContext camelContext;
public void testCanMarshalRoutes() throws Exception {
CamelContextResource resource = new CamelContextResource(camelContext);
RoutesType routes = resource.getRouteDefinitions();
List<RouteType> list = routes.getRoutes();
System.out.println("Found routes: " + list);
// now lets marshall to XML
JAXBContext context = JAXBContext.newInstance(RoutesType.class.getPackage().getName());
StringWriter out = new StringWriter();