// perform the mapping
for (int i = 0; i < RAW_DIMENSIONS; i++) {
RandomAccessSparseVector toAdd = new RandomAccessSparseVector(RAW_DIMENSIONS);
toAdd.assign(RAW[i]);
mapper.map(new IntWritable(i), new VectorWritable(toAdd), context);
}
// check the number of the results
assertEquals("Number of map results", RAW_DIMENSIONS,
writer.getValue(NullWritable.get()).size());