.child(INDEX_DEFINITIONS_NAME), "index2", true, false,
ImmutableSet.of("foo"), null);
NodeState after = builder.getNodeState();
IndexUpdateProvider p = new IndexUpdateProvider(
new PropertyIndexEditorProvider());
EditorHook hook = new EditorHook(p);
NodeState indexed = hook.processCommit(before, after);
// check that the index content nodes exist
checkPathExists(indexed, INDEX_DEFINITIONS_NAME, "existing",