<x>4</x>
</a> */
public void testDescendantAxisOrder() {
Element a = new Element("a");
Document doc = new Document(a);
Element x1 = new Element("x");
x1.appendChild("a1");
Element x2 = new Element("x");
x2.appendChild("b2");
Element x3 = new Element("x");
x3.appendChild("c3");
Element x4 = new Element("x");
x4.appendChild("d4");
a.appendChild(x1);
Element b = new Element("b");
b.appendChild(x2);
b.appendChild(x3);
a.appendChild(b);
a.appendChild(x4);
Nodes result = doc.query("//x");
assertEquals(4, result.size());
assertTrue(result.get(0) instanceof Element);
assertTrue(result.get(1) instanceof Element);
assertTrue(result.get(2) instanceof Element);
assertTrue(result.get(3) instanceof Element);