assertEquals("root", binaryReader.getNodeName());
for (int i = 0; i < count; i++) {
assertTrue("Expected child " + i, binaryReader.hasMoreChildren());
binaryReader.moveDown();
assertEquals("node" + i, binaryReader.getNodeName());
binaryReader.moveUp();
}
for (int i = 0; i < count; i++) {
assertTrue("Expected child " + i, binaryReader.hasMoreChildren());
binaryReader.moveDown();
assertEquals("node" + i, binaryReader.getNodeName());