@Override
    public Map<String, String> getMetadata(final Path file) throws BackgroundException {
        try {
            return new GoogleStorageAttributesFinderFeature(session).find(file).getMetadata();
        }
        catch(NotfoundException e) {
            if(file.isDirectory()) {
                // No placeholder file may exist but we just have a common prefix
                return Collections.emptyMap();
            }
            throw e;
        }
    }
@Test
    public void testGetMetadataBucket() throws Exception {
        final Path bucket = new Path("cyberduck-test-eu", EnumSet.of(Path.Type.directory, Path.Type.volume));
        final Map<String, String> metadata = new GoogleStorageMetadataFeature(session).getMetadata(bucket);
        assertTrue(metadata.isEmpty());
    }