if (!Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
InstrumentationProcessor interceptor =
assertIsInstanceOf(InstrumentationProcessor.class, processor);
processor = interceptor.getProcessor();
}
IdempotentConsumer idempotentConsumer = assertIsInstanceOf(IdempotentConsumer.class, processor);
assertEquals("messageIdExpression", "header(myMessageId)", idempotentConsumer
.getMessageIdExpression().toString());
assertIsInstanceOf(MemoryMessageIdRepository.class, idempotentConsumer.getMessageIdRepository());
SendProcessor sendProcessor = assertIsInstanceOf(SendProcessor.class,
unwrapErrorHandler(idempotentConsumer
.getNextProcessor()));
assertEquals("Endpoint URI", "seda:b", sendProcessor.getDestination().getEndpointUri());
}
}