code:     public void testSendEntityMessage() throws Exception {
          
          MockEndpoint endpoint = getMockEndpoint("mock:result");
          endpoint.expectedMessageCount(1);
          //String message = "<!DOCTYPE foo [<!ENTITY xxe SYSTEM \"file:///Users//jiangning//.CFUserTextEncoding\">]><task><name>&xxe;</name></task>";
  
          String message = "<hello/>";
          template.sendBody("direct:start2", message);
  
          assertMockEndpointsSatisfied();
          
          List<Exchange> list = endpoint.getReceivedExchanges();
          Exchange exchange = list.get(0);
          String xml = exchange.getIn().getBody(String.class);
          
          System.out.println(xml);
      }
  
  