@Override
    public DescriptiveUrlBag toUrl(final Path file) {
        if(DescriptiveUrl.EMPTY == file.attributes().getLink()) {
            if(null == file.attributes().getFileId()) {
                return DescriptiveUrlBag.empty();
            }
            final DescriptiveUrl share = toUrl(host, EueShareFeature.findShareForResource(shares,
                    file.attributes().getFileId()));
            if(DescriptiveUrl.EMPTY == share) {
                return DescriptiveUrlBag.empty();
            }
            return new DescriptiveUrlBag(Collections.singleton(share));
        }
        return new DescriptiveUrlBag(Collections.singleton(file.attributes().getLink()));
    }
@Test
    public void toUrl() {
        assertEquals(DescriptiveUrl.EMPTY, new EueShareUrlProvider(new Host(new EueProtocol()), new UserSharesModel()).toUrl(
                new Path("/f", EnumSet.of(Path.Type.file))).find(DescriptiveUrl.Type.signed));
    }