int port=conf.getInt(DISTRIBUTED_SEARCH_TEST_PORT, DEFAULT_PORT);
InetSocketAddress[] addresses=new InetSocketAddress[1];
addresses[0]=new InetSocketAddress("localhost", port);
Client c=new DistributedSearch.Client(addresses, conf);
Query query=Query.parse("apache", conf);
Hits hits=c.search(query, 5, null, null, false);
c.getDetails(hits.getHit(0));
assertTrue(hits.getTotal()>0);
}