/**
* Test for correct xpath, but no handler bean is found --> shall raise exc
*/
@Test
public void testRouteMessageWithBadHandlerConfiguration() throws Exception {
XPathPayloadMappingKeyExtractor mappingNameExtractor = new XPathPayloadMappingKeyExtractor();
mappingNameExtractor.setXpathExpression("//Test/@name");
endpointAdapter.setMappingKeyExtractor(mappingNameExtractor);
try {
endpointAdapter.handleMessage(new DefaultMessage(
"<Test name=\"UNKNOWN_TEST\"></Test>"));