@VisibleForTesting
  AmazonS3 getAmazonS3Client() {
    return this.amazonS3.get();
  }
@Test
  public void testGetPathStyleAccessEnabled() throws URISyntaxException {
    S3FileSystem s3FileSystem =
        new S3FileSystem(s3ConfigWithCustomEndpointAndPathStyleAccessEnabled("s3"));
    URL s3Url = s3FileSystem.getAmazonS3Client().getUrl("bucket", "file");
    assertEquals("https://s3.custom.dns/bucket/file", s3Url.toURI().toString());
  }