### Question:
IntegrationRouteBuilder extends RouteBuilder { public IntegrationRouteBuilder(String configurationUri) { this(configurationUri, Resources.loadServices(IntegrationStepHandler.class)); } IntegrationRouteBuilder(String configurationUri);  IntegrationRouteBuilder(String configurationUri, Collection<IntegrationStepHandler> handlers);  IntegrationRouteBuilder(String configurationUri, Collection<IntegrationStepHandler> handlers, List<ActivityTrackingPolicyFactory> activityTrackingPolicyFactories);  IntegrationRouteBuilder(SourceProvider sourceProvider, Collection<IntegrationStepHandler> handlers, List<ActivityTrackingPolicyFactory> activityTrackingPolicyFactories); @Override ModelCamelContext getContext(); @Override void configure();  }### Answer:
@Test public void testIntegrationRouteBuilder() throws Exception { String configurationLocation = "classpath:syndesis/integration/integration.json"; IntegrationRouteBuilder routeBuilder = new IntegrationRouteBuilder(configurationLocation, Resources.loadServices(IntegrationStepHandler.class), policyFactories); routeBuilder.configure(); dumpRoutes(new DefaultCamelContext(), routeBuilder.getRouteCollection()); RoutesDefinition routes = routeBuilder.getRouteCollection(); assertThat(routes.getRoutes()).hasSize(1); RouteDefinition route = routes.getRoutes().get(0); assertThat(route.getRoutePolicies()).hasSize(1); assertThat(route.getInput()).isNotNull(); assertThat(route.getInput()).hasFieldOrPropertyWithValue("uri", "direct:expression"); assertThat(route.getOutputs()).hasSize(2); assertThat(getOutput(route, 0)).isInstanceOf(PipelineDefinition.class); assertThat(getOutput(route, 0).getOutputs()).hasSize(2); assertThat(getOutput(route, 0).getOutputs().get(0)).isInstanceOf(SetHeaderDefinition.class); assertThat(getOutput(route, 0).getOutputs().get(1)).isInstanceOf(SetHeaderDefinition.class); assertThat(getOutput(route, 1)).isInstanceOf(SplitDefinition.class); assertThat(getOutput(route, 1).getOutputs()).hasSize(3); assertThat(getOutput(route, 1, 0)).isInstanceOf(SetHeaderDefinition.class); assertThat(getOutput(route, 1, 1)).isInstanceOf(ProcessDefinition.class); assertThat(getOutput(route, 1, 2)).isInstanceOf(PipelineDefinition.class); assertThat(getOutput(route, 1, 2).getOutputs()).hasSize(3); assertThat(getOutput(route, 1, 2, 0)).isInstanceOf(SetHeaderDefinition.class); assertThat(getOutput(route, 1, 2, 1)).isInstanceOf(ToDefinition.class); assertThat(getOutput(route, 1, 2, 1)).hasFieldOrPropertyWithValue("uri", "mock:expression"); assertThat(getOutput(route, 1, 2, 2)).isInstanceOf(ProcessDefinition.class); }