index = mock(BatchInserterIndex.class);
when(provider.nodeIndex(eq("index-a"),anyMap())).thenReturn(index);
final Map<String, String> configData = Config.config("batch.properties");
new IndexInfo("node_index", "index-a", "exact", null).addToConfig(configData);
importer = new Importer(File.createTempFile("test", "db"), new Config(configData)) {
@Override
protected BatchInserter createBatchInserter(File graphDb, Config config) {
return inserter;
}