@Test
public void test() throws Exception {
Configuration conf = getTestUtil().getConfiguration();
TweetCube tweetCube = new TweetCube(getHBaseHarness(conf),
SyncLevel.BATCH_ASYNC); // Buffer DB writes and flush when needed
tweetCube.countAll(new TweetIterator(100));
tweetCube.flush();
System.out.println("Total tweets: " + tweetCube.getCount());
System.out.println("Tweets by baraneshgh: " + tweetCube.getUserCount("baraneshgh"));
System.out.println("Tweets retweeting IranTube: " + tweetCube.getRetweetsOf("IranTube"));
System.out.println("Retweets of omidhabibinia by DominiqueRdr: " +