JobConf conf = new JobConf();
conf.set("io.serializations",
"org.apache.hadoop.io.serializer.JavaSerialization,org.apache.hadoop.io.serializer.WritableSerialization");
DefaultStringifier<Integer> intStringifier = new DefaultStringifier<Integer>(conf, Integer.class);
conf.set("bayes.gramSize", intStringifier.toString(3));
mapper.configure(conf);
DummyOutputCollector<Text, DoubleWritable> output = new DummyOutputCollector<Text, DoubleWritable>();
mapper.map(new Text("foo"), new Text("big brown shoe"), output, null);
Map<String, List<DoubleWritable>> outMap = output.getData();
System.out.println("Map: " + outMap);