@Test
  public void testFriendSearch() {
    //        FriendSearchHelper helper = new FriendSearchHelper() {
    //
    //            @Override
    //            public void updateUser(SolrUser user) {
    //            }
    //
    //            @Override
    //            public SolrUser getUser(String screenName) {
    //                return new SolrUser(screenName);
    //            }
    //
    //        };
    //        helper.setTwitter4j(twitterSearch);
    //        Collection<String> f = helper.getFriendsOf("ibood");
    //        assertTrue(f.size() > 10);
    //        System.out.println("Friends:" + f.size() + " " + f);
    Collection<String> f = new ArrayList<String>();
    for (int i = 0; i < 50000; i++) {
      f.add("user" + i);
    }

    TweetQuery q = new TweetQuery("").createFriendsQuery(f);

    // create tweet to map some indirectly mapped (not defined) fields like dt
    twSearchTester.getSearch().store(new JTweet(1L, "test", new JUser("user")), true);

    // should not throw an exception
    twSearchTester.getSearch().query(q);
  }
 @Before
 @Override
 public void setUp() throws Exception {
   super.setUp();
   twSearchTester.setUp();
   Credits c = new Configuration().getTwitterSearchCredits();
   twitterSearch.initTwitter4JInstance(c.getToken(), c.getTokenSecret(), true);
 }
 @AfterClass
 public static void afterClass() {
   twSearchTester.afterClass();
 }
 @BeforeClass
 public static void beforeClass() {
   twSearchTester.beforeClass();
 }