<BUG>IndexDefinition indexDefinition = db.schema().getIndexes().iterator().next();
db.schema().awaitIndexOnline( indexDefinition, 10l, TimeUnit.SECONDS );
assertEquals( 12, db.getNodeById( nodeId ).getProperty( NUM_BANANAS_KEY ) );</BUG>
assertEquals( 1, doIndexLookup( myLabel, 12 ).size() );
}
<BUG>finally
{
transaction.finish();
}</BUG>
}

deleteNode( node );
killDb();
startDb( createLuceneIndexFactory() );
assertEquals( 0, doIndexLookup( myLabel, 12 ).size() );
}
