public virtual void TestGetOtherNNHttpAddress()
        {
            // Use non-local addresses to avoid host address matching
            Configuration conf = GetHAConf("ns1", "1.2.3.1", "1.2.3.2");

            conf.Set(DFSConfigKeys.DfsNameserviceId, "ns1");
            // This is done by the NN before the StandbyCheckpointer is created
            NameNode.InitializeGenericKeys(conf, "ns1", "nn1");
            // Since we didn't configure the HTTP address, and the default is
            // 0.0.0.0, it should substitute the address from the RPC configuration
            // above.
            StandbyCheckpointer checkpointer = new StandbyCheckpointer(conf, fsn);

            NUnit.Framework.Assert.AreEqual(new Uri("http", "1.2.3.2", DFSConfigKeys.DfsNamenodeHttpPortDefault
                                                    , string.Empty), checkpointer.GetActiveNNAddress());
        }