public virtual void TestWritableSerialization()
        {
            Text before = new Text("test writable");
            Text after  = SerializationTestUtil.TestSerialization(conf, before);

            Assert.Equal(before, after);
        }
 public virtual void TestWritableConfigurable()
 {
     //set the configuration parameter
     conf.Set(TestGenericWritable.ConfTestKey, TestGenericWritable.ConfTestValue);
     //reuse TestGenericWritable inner classes to test
     //writables that also implement Configurable.
     TestGenericWritable.FooGenericWritable generic = new TestGenericWritable.FooGenericWritable
                                                          ();
     generic.SetConf(conf);
     TestGenericWritable.Baz baz = new TestGenericWritable.Baz();
     generic.Set(baz);
     TestGenericWritable.Baz result = SerializationTestUtil.TestSerialization(conf, baz
                                                                              );
     Assert.Equal(baz, result);
     NUnit.Framework.Assert.IsNotNull(result.GetConf());
 }