public void testSerializeMapReduceSpec() throws IOException
{
ArrayList<MapReducePhase> phases = new ArrayList<MapReducePhase>();
phases.add(new MapPhase(Function.newNamedJsFunction("map_func")));
phases.add(new ReducePhase(Function.newNamedJsFunction("reduce_func")));
phases.add(new LinkPhase("bucket", "tag"));
BucketInput input = new BucketInput(new Namespace("bucket"), Collections.<KeyFilter>emptyList());
MapReduceSpec spec = new MapReduceSpec(input, phases, 1000L);