// the start of the route
sb.append("from(\"" + route.getEndpoint().getEndpointUri() + "\")");
// navigate the route and add Java DSL to the sb
Navigate<Processor> nav = route.navigate();
navigateRoute(nav, sb);
// output the Java DSL
assertEquals("from(\"direct://start\").loadBalance().random().to(\"mock://x\").to(\"mock://y\").to(\"mock://z\")", sb.toString());
}