I have written a test case as shown below. Though there are no system
dependencies, This case case never fails in my system but it fails in all
other systems.
@Test
public void testSOTBlock() throws Exception {
context.getRouteDefinitions().get(0).adviceWith(context, new
AdviceWithRout
Its hard to help when you do not provide more details. The stacktrace
refers to route 17, so check that that route if its somewhat special.
Also you can try upgrading Camel.
And when you use advice-with in unit tests, then make sure to follow
the box on this page with "telling Camel you are using