public void testAddRemoveIndices() throws Exception {
ILuceneClient client = new LuceneClient(_protocol);
IDeployClient deployClient = new DeployClient(_protocol);
int listenerCountBeforeDeploys = _protocol.getRegisteredListenerCount();
deployClient.addIndex("newIndex1", INDEX_FILE.getAbsolutePath(), 1).joinDeployment();
deployClient.addIndex("newIndex2", INDEX_FILE.getAbsolutePath(), 1).joinDeployment();
deployClient.addIndex("newIndex3", INDEX_FILE.getAbsolutePath(), 1).joinDeployment();
final Query query = new QueryParser(Version.LUCENE_30, "", new KeywordAnalyzer()).parse("content: the");
client.search(query, new String[] { "newIndex1" }, 10);