@Override
    public NSURL lock(final boolean interactive) throws AccessDeniedException {
        final NSURL resolved = resolver.resolve(this, interactive);
        if(null == resolved) {
            // Ignore failure resolving path
            return null; // NSURL.fileURLWithPath(this.getAbsolute());
        }
        if(!resolved.startAccessingSecurityScopedResource()) {
            throw new LocalAccessDeniedException(String.format("Failure accessing security scoped resource for %s", this));
        }
        return resolved;
    }
@Test
    public void testLockNoSuchFile() throws Exception {
        FinderLocal l = new FinderLocal(System.getProperty("java.io.tmpdir"), UUID.randomUUID().toString());
        assertNull(l.lock(false));
    }