@Test
public void parseSubmitRequest0() throws Exception {

    StringBuilder string0 = new StringBuilder(200)
        .append("<?xml version=\"1.0\"?>\n")
        .append("<operation type=\"submit\">\n")
        .append(" <account username=\"customer1\" password=\"test1\"/>\n")
        .append(" <submitRequest referenceId=\"MYREF102020022\">\n")
        .append("  <operatorId>10</operatorId>\n")
        .append("  <deliveryReport>true</deliveryReport>\n")
        .append("  <sourceAddress type=\"network\">40404</sourceAddress>\n")
        .append("  <destinationAddress type=\"international\">+12065551212</destinationAddress>\n")
        .append("  <text encoding=\"ISO-8859-1\">48656c6c6f20576f726c64</text>\n")
        .append(" </submitRequest>\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.isRequest());
    SubmitRequest submitReq = (SubmitRequest)operation;
    Assert.assertEquals("customer1", submitReq.getAccount().getUsername());
    Assert.assertEquals("test1", submitReq.getAccount().getPassword());
    Assert.assertNull(submitReq.getApplication());
    Assert.assertEquals("MYREF102020022", submitReq.getReferenceId());
    Assert.assertEquals(new Integer(10), submitReq.getOperatorId());
    Assert.assertEquals(new Boolean(true), submitReq.getDeliveryReport());
    Assert.assertEquals(MobileAddress.Type.NETWORK, submitReq.getSourceAddress().getType());
    Assert.assertEquals("40404", submitReq.getSourceAddress().getAddress());
    Assert.assertEquals(MobileAddress.Type.INTERNATIONAL, submitReq.getDestinationAddress().getType());
    Assert.assertEquals("+12065551212", submitReq.getDestinationAddress().getAddress());
    Assert.assertEquals("Hello World", submitReq.getText());
}