@Test
public void testMountTableFileWithInvalidFormat() throws Exception {

  Path path = new Path(new URI(
      targetTestRoot.toString() + "/testMountTableFileWithInvalidFormat/"));
  fsTarget.mkdirs(path);
  File invalidMountFileName =
      new File(new URI(path.toString() + "/table.InvalidVersion.xml"));
  invalidMountFileName.createNewFile();
  // Adding mount links to make sure it will not read it.
  ViewFsTestSetup.addMountLinksToFile(TABLE_NAME,
      new String[] {SRC_ONE, SRC_TWO }, new String[] {TARGET_ONE,
          TARGET_TWO },
      new Path(invalidMountFileName.toURI()), conf);
  // Pass mount table directory
  loader.load(path.toString(), conf);
  Assert.assertEquals(null, conf.get(MOUNT_LINK_KEY_SRC_TWO));
  Assert.assertEquals(null, conf.get(MOUNT_LINK_KEY_SRC_ONE));
  invalidMountFileName.delete();
}