public virtual void TestEmptyConf() { HdfsConfiguration conf = new HdfsConfiguration(false); try { IDictionary <string, IDictionary <string, IPEndPoint> > map = DFSUtil.GetNNServiceRpcAddresses (conf); NUnit.Framework.Assert.Fail("Expected IOException is not thrown, result was: " + DFSUtil.AddressMapToString(map)); } catch (IOException) { } try { IDictionary <string, IDictionary <string, IPEndPoint> > map = DFSUtil.GetBackupNodeAddresses (conf); NUnit.Framework.Assert.Fail("Expected IOException is not thrown, result was: " + DFSUtil.AddressMapToString(map)); } catch (IOException) { } try { IDictionary <string, IDictionary <string, IPEndPoint> > map = DFSUtil.GetSecondaryNameNodeAddresses (conf); NUnit.Framework.Assert.Fail("Expected IOException is not thrown, result was: " + DFSUtil.AddressMapToString(map)); } catch (IOException) { } }