//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void explicitIndexPopulationWithBunchOfFields() internal virtual void ExplicitIndexPopulationWithBunchOfFields() { assertTimeout(ofMillis(TEST_TIMEOUT), () => { BatchInserter batchNode = BatchInserters.inserter(_directory.databaseDir()); LuceneBatchInserterIndexProvider provider = new LuceneBatchInserterIndexProvider(batchNode); try { BatchInserterIndex batchIndex = provider.nodeIndex("node_auto_index", stringMap(IndexManager.PROVIDER, "lucene", "type", "fulltext")); IDictionary <string, object> properties = IntStream.range(0, 2000).mapToObj(i => Pair.of(Convert.ToString(i), randomAlphabetic(200))).collect(toMap(Pair.first, Pair.other)); long node = batchNode.createNode(properties, Label.label("NODE")); batchIndex.add(node, properties); } finally { provider.shutdown(); batchNode.shutdown(); } }); }