@Test
public void parseSubmitResponse() 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());
    SxmpParser parser = new SxmpParser();
    Operation operation = parser.parse(is);
    //logger.debug("{}", operation);
    Assert.assertEquals(Operation.Type.SUBMIT, operation.getType());
    Assert.assertEquals(true, operation.isResponse());
    SubmitResponse submitResponse = (SubmitResponse)operation;
    Assert.assertEquals("000:20090118002220948:000", submitResponse.getTicketId());
    Assert.assertEquals(new Integer(0), submitResponse.getErrorCode());
    Assert.assertEquals("OK", submitResponse.getErrorMessage());
}