WebServiceMessageReceiver endpoint = new WebServiceMessageReceiver() {
@Override
public void receive(MessageContext messageContext) throws Exception {
throw new NoEndpointFoundException(messageContext.getRequest());
}
};
adapter.handle(httpRequest, httpResponse, endpoint);
Assert.assertEquals("No 404 returned", HttpServletResponse.SC_NOT_FOUND, httpResponse.getStatus());