@Test
ublic void testSerializationKeyIsTrimmed() {

 Configuration conf = new Configuration();
 conf.set(CommonConfigurationKeys.IO_SERIALIZATIONS_KEY, " org.apache.hadoop.io.serializer.WritableSerialization ");
 SerializationFactory factory = new SerializationFactory(conf);
 assertNotNull("Valid class must be returned",
  factory.getSerializer(LongWritable.class));
}