tweetProducerThread.setUncaughtExceptionHandler(excHandler);
tweetProducerThread.start();
// let tweetconsumer do its work
Thread.sleep(500);
tweetSearch.forceEmptyQueueAndRefresh();
List<JTweet> tweets = tweetSearch.searchTweets(new TweetQuery().setSort(ElasticTweetSearch.RT_COUNT, "desc"));
assertEquals(2, tweets.size());
assertEquals(1, tweets.get(0).getRetweetCount());
assertEquals(0, tweets.get(1).getRetweetCount());
}