@Test
public void testNonExistentShard() throws Exception {
final Query query = new QueryParser(Version.LUCENE_30, "", new KeywordAnalyzer()).parse("foo: bar");
ILuceneClient client = new LuceneClient(_miniCluster.getZkConfiguration());
try {
client.search(query, new String[] { "doesNotExist" });
fail("Should have failed.");
} catch (KattaException e) {
assertEquals("Index [pattern(s)] '[doesNotExist]' do not match to any deployed index: []", e.getMessage());
}
client.close();