public void testAsyncDoubleSubtree() throws Exception {
NodeStore store = new MemoryNodeStore();
ScheduledExecutorService executor = Executors.newScheduledThreadPool(0);
IndexEditorProvider provider = new PropertyIndexEditorProvider();
NodeStoreBranch branch = store.branch();
NodeState root = branch.getHead();
NodeBuilder builder = root.builder();
createIndexDefinition(builder.child(INDEX_DEFINITIONS_NAME),
"rootIndex", true, false, ImmutableSet.of("foo"), null)
.setProperty(ASYNC_PROPERTY_NAME, true);