String detachedPayload = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + //
"<ns:root xmlns:ns=\"http://test\"><a ID=\"myID\"><b>bValue</b></a></ns:root>";
XmlSignerEndpoint endpoint = getDetachedSignerEndpoint();
endpoint.setSchemaResourceUri(null);
MockEndpoint mock = setupExceptionMock();
mock.expectedMessageCount(1);
sendBody("direct:detached", detachedPayload);
assertMockEndpointsSatisfied();
checkThrownException(mock, XmlSignatureException.class,
"The configruation of the XML Signature component is wrong: No XML schema specified in the detached case", null);
}