@Override
    public PathAttributes find(final Path file, final ListProgressListener listener) throws BackgroundException {
        final PathAttributes attr = super.find(file, listener);
        if(StringUtils.isNotBlank(file.attributes().getVersionId())) {
            return attr.withVersionId(file.attributes().getVersionId()).withFileId(file.attributes().getFileId());
        }
        return attr;
    }
@Test
    public void testFindLock() throws Exception {
        final Path test = new DAVTouchFeature(new NextcloudWriteFeature(session)).touch(new Path(new DefaultHomeFinderService(session).find(),
                new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)), new TransferStatus());
        final NextcloudAttributesFinderFeature f = new NextcloudAttributesFinderFeature(session);
        assertNull(f.find(test).getLockId());
        final String lockId = new DAVLockFeature(session).lock(test);
        assertNotNull(f.find(test).getLockId());
        assertThrows(LockedException.class, () -> new DAVDeleteFeature(session).delete(Collections.singletonList(test), new DisabledPasswordCallback(), new Delete.DisabledCallback()));
        new DAVLockFeature(session).unlock(test, lockId);
        new DAVDeleteFeature(session).delete(Collections.singletonList(test), new DisabledPasswordCallback(), new Delete.DisabledCallback());
    }