IndexUtils.createIndexDefinition(root.child(IndexConstants.INDEX_DEFINITIONS_NAME),
TEST_INDEX_NAME, false, ImmutableList.of(ORDERED_PROPERTY), null, OrderedIndex.TYPE,
ImmutableMap.<String, String> of());
NodeState before = root.getNodeState();
final OrderDirection direction = OrderDirection.ASC;
final QueryIndex.OrderEntry.Order order = OrderDirection.ASC.equals(direction) ? QueryIndex.OrderEntry.Order.ASCENDING
: QueryIndex.OrderEntry.Order.DESCENDING;
List<String> values = generateOrderedValues(NUMBER_OF_NODES, direction);
addChildNodes(values, root, Type.STRING);
NodeState after = root.getNodeState();