@Test
public void doProcessBadURL() throws Exception {

    SxmpServletProcessor processor = new SxmpServletProcessor();
    try {
        processor.doProcess(null, null, null, "/", "POST", "text/xml");
    } catch (HttpStatusCodeException e) {
        // correct behavior
        Assert.assertEquals(HttpStatus.SC_NOT_FOUND, e.getStatusCode());
        Assert.assertThat(e.getMessage(), CoreMatchers.containsString("Bad URL used"));
    }
}