SignalMessageElement { public static Iterator<OMElement> getElements(final OMElement messaging) { return messaging.getChildrenWithName(Q_ELEMENT_NAME); }  static OMElement createElement(final OMElement messaging); static Iterator<OMElement> getElements(final OMElement messaging); static final QName Q_ELEMENT_NAME; }
@Test public void testGetElements() throws Exception { SignalMessageElement.createElement(headerBlock); Iterator<OMElement> it = SignalMessageElement.getElements(headerBlock); assertTrue(it.hasNext()); assertEquals(SIGNAL_MESSAGE_ELEMENT_NAME, it.next().getQName()); }