@Test
public void processResponseThrowsUnsupportedOperation() throws Exception {

    StringBuilder string0 = new StringBuilder(200)
        .append("<?xml version=\"1.0\"?>\n")
        .append("<operation type=\"submit\">\n")
        .append(" <submitResponse>\n")
        .append("   <error code=\"0\" message=\"OK\"/>\n")
        .append("   <ticketId>000:20090118002220948:000</ticketId>\n")
        .append(" </submitResponse>\n")
        .append("</operation>\n")
        .append("");
    ByteArrayInputStream is = new ByteArrayInputStream(string0.toString().getBytes());
    MockSxmpRequestProcessor processor = new MockSxmpRequestProcessor();
    SxmpSession session = new SxmpSession(processor, SxmpParser.VERSION_1_0);
    // this should actually not throw an error and should be an error response
    ErrorResponse response = (ErrorResponse)session.process(is);
    Assert.assertEquals(Operation.Type.SUBMIT, response.getType());
    Assert.assertEquals(SxmpErrorCode.UNSUPPORTED_OPERATION.getIntValue(), response.getErrorCode().intValue());
    //Assert.assertThat(e.getMessage(), CoreMatchers.containsString("Root element must be an [operation]"));
}