@Override
    public boolean isSupported(final Path file, final Type type) {
        if(StringUtils.equals(EueResourceIdProvider.TRASH, file.attributes().getFileId())) {
            return false;
        }
        if(type == Type.upload) {
            return file.isDirectory();
        }
        return DescriptiveUrl.EMPTY == file.attributes().getLink();
    }
@Test
    public void testUploadUrlForFile() {
        final EueResourceIdProvider fileid = new EueResourceIdProvider(session);
        final Path file = new Path(new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));
        final EueShareFeature f = new EueShareFeature(session, fileid);
        assertFalse(f.isSupported(file, Share.Type.upload));
    }