OMFactory factory = OMAbstractFactory.getOMFactory();
OMNamespace testNamespace = factory.createOMNamespace("http://test.axis2.org", "test");
OMElement documentElement = getSampleDocumentElement(testNamespace);
Iterator childrenIter = new OMChildrenWithSpecificAttributeIterator(
documentElement.getFirstOMChild(), new QName(testNamespace.getName(), "myAttr",
testNamespace.getPrefix()), "Axis2", false);
int childCount = getChidrenCount(childrenIter);
assertEquals("Iterator must return 5 children with the given attribute", childCount, 5);