@Test (timeout = 10000)
public void testNamespaceVerification() throws Exception {

  journal.newEpoch(FAKE_NSINFO, 1);
  try {
    journal.newEpoch(FAKE_NSINFO_2, 2);
    fail("Did not fail newEpoch() when namespaces mismatched");
  } catch (IOException ioe) {
    GenericTestUtils.assertExceptionContains(
        "Incompatible namespaceID", ioe);
  }
}