System.out.println("Created: " + routeDef);
assertSingleInput(routeDef, FromDefinition.class);
assertSize(routeDef.getOutputs(), 2);
ChoiceDefinition c1 = assertOutput(routeDef, 0, ChoiceDefinition.class);
ToDefinition ed4 = assertOutput(routeDef, 1, ToDefinition.class);
assertEquals("choice -> to", "seda:d", ed4.getUri());
List<WhenDefinition> whenClauses = c1.getWhenClauses();
assertSize(whenClauses, 1);
WhenDefinition wd1 = whenClauses.get(0);
ToDefinition ed2 = assertSingleOutput(wd1, ToDefinition.class);
assertEquals("when -> to", "seda:b", ed2.getUri());
OtherwiseDefinition od1 = c1.getOtherwise();
assertNotNull("Should have Otherwise", od1);
ToDefinition ed3 = assertSingleOutput(od1, ToDefinition.class);
assertEquals("otherwise -> to", "seda:c", ed3.getUri());
RouteContainer routeContainer = new RouteContainer();
RouteSupport route2 = new Route(routeDef, routeContainer);
System.out.println("Created route: " + route2);
assertRoute(route);