public static void main(String[] args) throws Exception {
FakeTweetGenerator fakeTweets = new FakeTweetGenerator();
FeederBatchSpout testSpout = new FeederBatchSpout(ImmutableList.of("id", "text", "actor", "location", "date"));
Config conf = new Config();
LocalCluster cluster = new LocalCluster();
LocalDRPC drpc = new LocalDRPC();
cluster.submitTopology("external_state_drpc", conf, externalState(drpc, testSpout));
// You can use FeederBatchSpout to feed know values to the topology. Very useful for tests.
testSpout.feed(fakeTweets.getNextTweetTuples("ted"));
testSpout.feed(fakeTweets.getNextTweetTuples("ted"));
testSpout.feed(fakeTweets.getNextTweetTuples("mary"));