@Test
public void testPathToKeyTrailing() throws Exception {

  doTestPathToKey(new Path("s3a://test-bucket/myDir/trailing//"));
  doTestPathToKey(new Path("s3a://test-bucket/myDir/trailing/"));
  LambdaTestUtils.intercept(IllegalArgumentException.class,
      () -> pathToKey(new Path("s3a://test-bucket//")));
}