/**
* Basic dispatcher test which verifies erroneous response from service.
*/
@Test
public void testOutRuntimeFault() {
RuntimeErrorInterceptor interceptor = new RuntimeErrorInterceptor(
true, ExchangeInterceptor.PROVIDER);
_camelContext.getWritebleRegistry().put("interceptor", interceptor);
ServiceReference ref = registerInOutService("inOut");
Exchange exchange = sendMessage(ref, TEST_CONTENT);
assertCause("RuntimeException after on target Provider", exchange);
Assert.assertEquals(2, interceptor.getCount());
}