Endpoint key = route.getEndpoint();
assertEquals("From endpoint", "seda:a", key.getEndpointUri());
Processor processor = getProcessorWithoutErrorHandler(route);
if (!Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
InstrumentationProcessor interceptor =
assertIsInstanceOf(InstrumentationProcessor.class, processor);
processor = interceptor.getProcessor();
}
ChoiceProcessor choiceProcessor = assertIsInstanceOf(ChoiceProcessor.class, processor);
List<FilterProcessor> filters = choiceProcessor.getFilters();
assertEquals("Should be two when clauses", 2, filters.size());