@Test
public void testGetMountsOfConsecutiveSlashes() throws IOException {

  // Check listing the mount table records at or beneath a path
  List<MountTable> records = mountTable.getMounts("///");
  assertEquals(10, records.size());
  compareRecords(records, new String[] {"/", "/tmp", "/user", "/usr/bin",
      "user/a", "/user/a/demo/a", "/user/a/demo/b", "/user/b/file1.txt",
      "readonly", "multi"});
  records = mountTable.getMounts("/user///");
  assertEquals(5, records.size());
  compareRecords(records, new String[] {"/user", "/user/a/demo/a",
      "/user/a/demo/b", "user/a", "/user/b/file1.txt"});
  records = mountTable.getMounts("///user///a");
  assertEquals(3, records.size());
  compareRecords(records,
      new String[] {"/user/a/demo/a", "/user/a/demo/b", "/user/a"});
}