public virtual void TestConvertNamespaceInfo() { NamespaceInfo info = new NamespaceInfo(37, "clusterID", "bpID", 2300); HdfsProtos.NamespaceInfoProto proto = PBHelper.Convert(info); NamespaceInfo info2 = PBHelper.Convert(proto); Compare(info, info2); //Compare the StorageInfo NUnit.Framework.Assert.AreEqual(info.GetBlockPoolID(), info2.GetBlockPoolID()); NUnit.Framework.Assert.AreEqual(info.GetBuildVersion(), info2.GetBuildVersion()); }