superuser.save();
}
public void testEmptyNodeSequence() throws RepositoryException {
Comparator<String> order = Rank.<String>comparableComparator();
TreeManager treeManager = new BTreeManager(testNode, 5, 10, order, true);
NodeSequence nodes = ItemSequence.createNodeSequence(treeManager, errorHandler);
Iterator<Node> nodeIt = nodes.iterator();
assertTrue(nodeIt.hasNext());
assertTrue(treeManager.isRoot(nodeIt.next()));
assertFalse(nodeIt.hasNext());
checkTreeProperty(testNode, 5, 10, order);
checkOrder(nodes, order);
assertEmpty(nodes);