src/test/java/com/upplication/s3fs/FileSystemProvider/CheckAccessTest.java
@Ignore
    @Test(expected = AccessDeniedException.class)
    public void checkAccessWriteWithoutPermission() throws IOException {
        // fixtures
        AmazonS3ClientMock client = AmazonS3MockFactory.getAmazonClientMock();
        client.bucket("bucketA").dir("dir");
        // return empty list
        doReturn(new AccessControlList()).when(client).getObjectAcl("bucketA", "dir/");

        Path file1 = createNewS3FileSystem().getPath("/bucketA/dir");
        s3fsProvider.checkAccess(file1, AccessMode.WRITE);
    }
/**
     * For explanation why the test case has been ignored,
     * please see the comment on {@link S3AccessControlList#hasPermission},
     *
     * @throws IOException
     */
For explanation why the test case has been ignored,
please see the comment on  S3AccessControlList#hasPermission.


For explanation why the test case has been ignored please see the comment on S3AccessControlList#hasPermission .
@Ignore
    @Test(expected = AccessDeniedException.class)
    public void checkAccessWriteWithoutPermission() throws IOException {
        AmazonS3ClientMock client = AmazonS3MockFactory.getAmazonClientMock();
        client.bucket("bucketA").dir("dir");
        doReturn(new AccessControlList()).when(client).getObjectAcl("bucketA", "dir/");
        Path file1 = createNewS3FileSystem().getPath("/bucketA/dir");
        s3fsProvider.checkAccess(file1, AccessMode.WRITE);
    }
@ Ignore @ Test ( expected = AccessDeniedException . class ) public void checkAccessWriteWithoutPermission ( ) throws IOException { AmazonS3ClientMock client = AmazonS3MockFactory . getAmazonClientMock ( ) ; client . bucket ( "bucketA" ) . dir ( "dir" ) ; doReturn ( new AccessControlList ( ) ) . when ( client ) . getObjectAcl ( "bucketA" , "dir/" ) ; Path file1 = createNewS3FileSystem ( ) . getPath ( "/bucketA/dir" ) ; s3fsProvider . checkAccess ( file1 , AccessMode . WRITE ) ; }
For explanation why the test case has been ignored,
 please see the comment on {@link S3AccessControlList#hasPermission},
For explanation why the test case has been ignored please see the comment on { @link S3AccessControlList#hasPermission }
// fixtures // return empty list