public void test() throws Exception {
final List<String> mapped = new ArrayList<String>();
final List<String> written = new ArrayList<String>();
@SuppressWarnings("unchecked")
List<Tuple2<Timestamp, String>> input = asList(
new Tuple2<Timestamp, String>(new Timestamp(System.currentTimeMillis()), "foo"),
new Tuple2<Timestamp, String>(new Timestamp(System.currentTimeMillis()), "bar"),
new Tuple2<Timestamp, String>(new Timestamp(System.currentTimeMillis()), "baz")
);
JStorm storm = JStorm.local();
JProducer<Storm, String> source = JStorm.source(
new TraversableSpout<Tuple2<Timestamp, String>>(asScalaIterable(input), "field"),
JProducers.<SourceParallelism>none());