@Override
    protected List<DavResource> list(final Path directory) throws IOException {
        return session.getClient().list(new DAVPathEncoder().encode(directory), 1,
                Stream.of(
                                NextcloudAttributesFinderFeature.OC_FILEID_CUSTOM_NAMESPACE,
                                NextcloudAttributesFinderFeature.OC_CHECKSUMS_CUSTOM_NAMESPACE,
                                NextcloudAttributesFinderFeature.OC_SIZE_CUSTOM_NAMESPACE,
                                DAVTimestampFeature.LAST_MODIFIED_CUSTOM_NAMESPACE,
                                DAVTimestampFeature.LAST_MODIFIED_SERVER_CUSTOM_NAMESPACE).
                        collect(Collectors.toSet()));
    }
@Test(expected = NotfoundException.class)
    public void testListNotfound() throws Exception {
        new NextcloudListService(session).list(new Path(new DefaultHomeFinderService(session).find(),
                        new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory)),
                new DisabledListProgressListener());
    }