private Object2ReferenceMap<String, Index> indexMap;
@Override
public void setUp() throws ConfigurationException, SecurityException, IOException, URISyntaxException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
basename = File.createTempFile( getClass().getSimpleName(), "test" ).getCanonicalPath();
new IndexBuilder( basename + "0", new StringArrayDocumentCollection( "a b", "b c", "c" ) ).run();
new IndexBuilder( basename + "1", new StringArrayDocumentCollection( "a b", "b c", "c" ) ).run();
index0 = DiskBasedIndex.getInstance( basename + "0-text", true, true );
index1 = DiskBasedIndex.getInstance( basename + "1-text", true, true );
index2 = DiskBasedIndex.getInstance( basename + "0-text", true, true );
index3 = DiskBasedIndex.getInstance( basename + "1-text", true, true );
indexMap = new Object2ReferenceOpenHashMap<String, Index>( new String[] { "index0", "index1", "index2", "index3" }, new Index[] { index0, index1, index2, index3 } );