@Test(timeout=100000)
public void testJournalDefaultDirForOneNameSpace() {

  Collection<String> nameServiceIds = DFSUtilClient.getNameServiceIds(conf);
  setupStaticHostResolution(2, "journalnode");
  String jid = "test-journalid-ns1";
  Journal nsJournal = jn.getJournal(jid);
  JNStorage journalStorage = nsJournal.getStorage();
  File editsDir = new File(MiniDFSCluster.getBaseDirectory() +
      File.separator + "TestJournalNode" + File.separator + "ns1" + File
      .separator + jid);
  assertEquals(editsDir.toString(), journalStorage.getRoot().toString());
  jid = "test-journalid-ns2";
  nsJournal = jn.getJournal(jid);
  journalStorage = nsJournal.getStorage();
  editsDir = new File(DFSConfigKeys.DFS_JOURNALNODE_EDITS_DIR_DEFAULT +
      File.separator + jid);
  assertEquals(editsDir.toString(), journalStorage.getRoot().toString());
}