@Test
public void testCreateElement() throws Exception {

    // Creating SOAP envelope
    SOAPEnvelope env = SOAPEnv.createEnvelope(SOAPEnv.SOAPVersion.SOAP_12);
    // Adding header
    Messaging.createElement(env);
    // Check if header contains Messaging header block with mustUnderstand=true
    SOAPHeader header = env.getHeader();
    ArrayList blocks =
            header.getHeaderBlocksWithNSURI(EbMSConstants.EBMS3_NS_URI);
    assertTrue(blocks.size()>0);
    assertTrue(((SOAPHeaderBlock) blocks.get(0)).getMustUnderstand());
}