protected void assertRoute(RouteSupport route) {
Endpoint e1 = assertSingleInput(route, Endpoint.class);
assertEquals("from", "seda:a", e1.getUri());
Choice c1 = assertSingleOutput(e1, Choice.class);
When w1 = assertOutput(c1, 0, When.class);
Endpoint e2 = assertSingleOutput(w1, Endpoint.class);
assertEquals("when -> to", "seda:b", e2.getUri());
Otherwise o1 = assertOutput(c1, 1, Otherwise.class);
Endpoint e3 = assertSingleOutput(o1, Endpoint.class);