@Override
    public boolean getStatus(final Path file) throws BackgroundException {
        final Path bucket = containerService.getContainer(file);
        try {
            return session.getClient().getAccelerateConfig(bucket.isRoot() ? StringUtils.EMPTY : bucket.getName()).isEnabled();
        }
        catch(S3ServiceException failure) {
            throw new S3ExceptionMappingService().map("Failure to read attributes of {0}", failure, bucket);
        }
    }
@Test
    public void getStatus() throws Exception {
        final Path container = new Path("test-eu-central-1-cyberduck", EnumSet.of(Path.Type.volume, Path.Type.directory));
        final S3TransferAccelerationService service = new S3TransferAccelerationService(session);
        service.getStatus(container);
    }