public void testXPathNamespaceTracingEnabledJavaDSL() throws Exception {
Logger l = createNiceMock(Logger.class);
expect(l.isTraceEnabled()).andReturn(true).anyTimes();
l.trace(contains("Namespaces discovered in message"), anyObject());
expectLastCall().times(1);
replay(l);
String body = "<aRoot xmlns:nsa=\"http://namespacec.net\"><nsa:a xmlns:nsa=\"http://namespacea.net\">Hello|there|Camel</nsa:a>"
+ "<nsb:a xmlns:nsb=\"http://namespaceb.net\">Hello|there|Camel</nsb:a><nsb:a xmlns:nsb=\"http://namespaceb.net\">Hello|there|Camel</nsb:a>"