@Test
public void testPathToKey() throws Exception {

  LambdaTestUtils.intercept(IllegalArgumentException.class,
      () -> pathToKey(new Path("/")));
  doTestPathToKey(TEST_DIR_PATH);
  doTestPathToKey(TEST_FILE_PATH);
}