S3FileObject extends S3CommonFileObject { @Override protected void doDelete() throws FileSystemException { SimpleEntry<String, String> newPath = fixFilePath( key, bucketName ); doDelete( newPath.getKey(), newPath.getValue() ); } protected  S3FileObject( final AbstractFileName name, final S3FileSystem fileSystem );   }
@Test public void testDoDelete() throws Exception { fileSystemSpy.init(); s3FileObjectBucketSpy.doDelete(); verify( s3ServiceMock ).deleteObject( "bucket3", "key0" ); verify( s3ServiceMock ).deleteObject( "bucket3", "key1" ); verify( s3ServiceMock ).deleteObject( "bucket3", "key2" ); verify( s3ServiceMock ).deleteObject( "bucket3", "" ); }