@@ -0,0 +1,1973 @@
+package es.tid.cosmos.mobility.activitydensity.profile;%0A%0Aimport java.util.Arrays;%0A%0Aimport com.twitter.elephantbird.mapreduce.io.ProtobufWritable;%0Aimport org.apache.hadoop.io.LongWritable;%0Aimport org.apache.hadoop.mrunit.mapreduce.ReduceDriver;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport es.tid.cosmos.mobility.data.*;%0Aimport es.tid.cosmos.mobility.data.generated.MobProtocol.BtsCounter;%0Aimport es.tid.cosmos.mobility.data.generated.MobProtocol.BtsProfile;%0Aimport es.tid.cosmos.mobility.data.generated.MobProtocol.MobData;%0A%0A/**%0A *%0A * @author dmicol%0A */%0Apublic class PopdenJoinArrayProfileReducerTest %7B%0A    private ReduceDriver%3CLongWritable, ProtobufWritable%3CMobData%3E,%0A            ProtobufWritable%3CBtsProfile%3E, ProtobufWritable%3CMobData%3E%3E instance;%0A    %0A    @Before%0A    public void setUp() %7B%0A        this.instance = new ReduceDriver%3CLongWritable,%0A                ProtobufWritable%3CMobData%3E, ProtobufWritable%3CBtsProfile%3E,%0A                ProtobufWritable%3CMobData%3E%3E(new PopdenJoinArrayProfileReducer());%0A    %7D%0A%0A    @Test%0A    public void testReduce() %7B%0A        final BtsCounter counter1 = BtsCounterUtil.create(10L, 20, 30, 40);%0A        final BtsCounter counter2 = BtsCounterUtil.create(50L, 60, 70, 80);%0A        final ProtobufWritable%3CMobData%3E counter = MobDataUtil.createAndWrap(%0A                NodeMxCounterUtil.create(Arrays.asList(counter1, counter2),%0A                                         3, 4));%0A        final ProtobufWritable%3CMobData%3E profile = MobDataUtil.createAndWrap(%0A                ClientProfileUtil.create(1L, 5));%0A        this.instance%0A                .withInput(new LongWritable(2L),%0A                           Arrays.asList(counter, profile))%0A                .withOutput(BtsProfileUtil.createAndWrap(10L, 5, 20, 30),%0A                            MobDataUtil.createAndWrap(40))%0A                .withOutput(BtsProfileUtil.createAndWrap(50L, 5, 60, 70),%0A                            MobDataUtil.createAndWrap(80))%0A                .runTest();%0A    %7D%0A%7D%0A

Add PopdenJoinArrayProfileReducerTest.