CamelRouteControllerEndpoint { @ReadOperation public List<String> getControlledRoutes() { RouteController controller = camelContext.getRouteController(); if (controller != null) { return controller.getControlledRoutes().stream() .map(Route::getId) .collect(Collectors.toList()); } return Collections.emptyList(); } CamelRouteControllerEndpoint(CamelContext camelContext); @ReadOperation List<String> getControlledRoutes();  }
@Test public void testRouteControllerEndpoint() throws Exception { List<String> routesId = endpoint.getControlledRoutes(); assertNotNull(routesId); }