@Override
    public Set<ProfileDescription> find(final Visitor visitor) throws AccessDeniedException {
        if(directory.exists()) {
            if(log.isDebugEnabled()) {
                log.debug(String.format("Load profiles from %s", directory));
            }
            return directory.list().filter(new ProfileFilter()).toList().stream()
                    .map(file -> visitor.visit(new LocalProfileDescription(protocols, parent, file))).collect(Collectors.toSet());
        }
        return Collections.emptySet();
    }
@Test
    public void find() throws Exception {
        final ProfilePlistReader reader = new ProfilePlistReader(new ProtocolFactory(Collections.singleton(new TestProtocol() {
            @Override
            public Type getType() {
                return Type.s3;
            }

            @Override
            public boolean isEnabled() {
                return false;
            }
        })));
        final Profile profile = reader.read(
            new Local("src/test/resources/Test S3 (HTTP).cyberduckprofile")
        );
        final LocalProfilesFinder finder = new LocalProfilesFinder(ProtocolFactory.get(), new Local("src/test/resources/"));
        final Set<ProfileDescription> stream = finder.find();
        assertFalse(stream.isEmpty());
    }