public void testBadHttpVerb() throws Exception {
prepareSoapMessage("test-soap-header.xml");
soapMessage.put(Message.HTTP_REQUEST_METHOD, "OPTIONS");
ReadHeadersInterceptor r = new ReadHeadersInterceptor(BusFactory.getDefaultBus());
try {
r.handleMessage(soapMessage);
fail("Did not throw exception");
} catch (Fault f) {
assertEquals(405, f.getStatusCode());
}
}