@Test
public void doProcessBadMethod() throws Exception {

    SxmpServletProcessor processor = new SxmpServletProcessor();
    try {
        processor.doProcess(null, null, null, "/api/sxmp/1.0", "GET", "text/xml");
    } catch (HttpStatusCodeException e) {
        // correct behavior
        Assert.assertEquals(HttpStatus.SC_METHOD_NOT_ALLOWED, e.getStatusCode());
        Assert.assertThat(e.getMessage(), CoreMatchers.containsString("Only HTTP POST method"));
    }
}