SchemaElement { public static OMElement getElement(final OMElement piElement) { return piElement.getFirstChildWithName(Q_ELEMENT_NAME); }  static OMElement createElement(final OMElement piElement, final ISchemaReference data); static OMElement getElement(final OMElement piElement); static SchemaReference readElement(final OMElement siElement); static final QName Q_ELEMENT_NAME; static final String LN_ATTR_LOCATION; static final String LN_ATTR_VERSION; static final String LN_ATTR_NAMESPACE; }
@Test public void testGetElement() throws Exception { OMElement schemaElement = SchemaElement.getElement(createXML( "<parent>" + "<eb3:Schema xmlns:eb3=\"http: + " location=\"http: + " namespace=\"http: + " version=\"2.0\"" + "/>" + "</parent>")); assertNotNull(schemaElement); assertEquals(SCHEMA_ELEMENT_NAME, schemaElement.getQName()); }