assertFalse("Should not have removed id", context.hasEndpoint("mock:bar") == null);
}
public void testBefore() throws Exception {
// START SNIPPET: e3
context.getRouteDefinitions().get(0).adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
// weave the node in the route which has id = bar
// and insert the following route path before the adviced node
weaveById("bar").before().to("mock:a").transform(constant("Bye World"));