MessageInfoElement { public static OMElement getElement(final OMElement piElement) { return piElement.getFirstChildWithName(Q_ELEMENT_NAME); }  static OMElement createElement(final OMElement muElement, final IMessageUnit data); static OMElement getElement(final OMElement piElement); static void readElement(final OMElement miElement, final MessageUnit msgUnit); static final QName Q_ELEMENT_NAME; }
@Test public void testGetElement() throws Exception { OMElement msgInfoElement = MessageInfoElement.getElement(createXML( "<parent>" + " <eb3:MessageInfo xmlns:eb3=\"http: " <eb3:Timestamp>2019-08-05T10:50:09.192Z</eb3:Timestamp>\n" + " <eb3:MessageId>8fba80a5-2a4b-42c4-9c8f-f53207d21673@gecko.fritz.box</eb3:MessageId>\n" + " </eb3:MessageInfo>" + "</parent>")); assertNotNull(msgInfoElement); assertEquals(MESSAGE_INFO_ELEMENT_NAME, msgInfoElement.getQName()); }