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

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