@Test
public void testReadElement() throws Exception {

    Receipt receipt = new Receipt();
    OMElement receiptChildElement =
            soapEnvelope.getOMFactory().createOMElement(RECEIPT_CHILD_ELEMENT_NAME);
    ArrayList<OMElement> content = new ArrayList<>();
    content.add(receiptChildElement);
    receipt.setContent(content);
    OMElement rElement = ReceiptElement.createElement(headerBlock, receipt);
    receipt = ReceiptElement.readElement(rElement);
    assertEquals(RECEIPT_CHILD_ELEMENT_NAME,
            receipt.getContent().iterator().next().getQName());
}