@Test
public void testToString() {

  MapWritable map = new MapWritable();
  final IntWritable key = new IntWritable(5);
  final Text value = new Text("value");
  map.put(key, value);
  assertEquals("{5=value}", map.toString());
}