PayloadInfoElement { public static OMElement getElement(final OMElement umElement) { return umElement.getFirstChildWithName(Q_ELEMENT_NAME); }  static OMElement createElement(final OMElement umElement, final Collection<IPayload> payloads); static OMElement getElement(final OMElement umElement); static Collection<IPayload> readElement(final OMElement piElement); static final QName Q_ELEMENT_NAME; }
@Test public void testGetElement() throws Exception { OMElement piElement = PayloadInfoElement.getElement(createXML( "<parent>" + "<eb3:PayloadInfo " + " xmlns:eb3=\"http: " <eb3:PartInfo href=\"cid:8fba80a5-2a4b-42c4-9c8f-f53207d21673-142514300@gecko.fritz.box\"/>" + "</eb3:PayloadInfo>" + "</parent>")); assertNotNull(piElement); assertEquals(PAYLOAD_INFO_ELEMENT_NAME, piElement.getQName()); }