@Test
public void supportsPath() {

    final S3FileSystemProvider provider = new S3FileSystemProvider();
    Assert.assertTrue("Expected to use provider for s3:///", provider.supportsPath(new Path("s3:///")));
    Assert.assertTrue("Expected to use provider for s3n:///", provider.supportsPath(new Path(S3N)));
    Assert.assertFalse("Expected to use Hadoop for s3n://bucket/", provider.supportsPath(new Path(S3N.resolve("//bucket/"))));
}