assertTrue(e.getMessage(), e.getMessage().startsWith("There are no outputs which matches: gold* in the route"));
}
}
public void testSelectRangeZeroOne() throws Exception {
context.getRouteDefinitions().get(0).adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
// should match the first two (0-based)
weaveById("gold*").selectRange(0, 1).replace().multicast().to("mock:a").to("mock:b");
}