*
* @see https://issues.apache.org/jira/browse/JCR-933
* @throws RepositoryException
*/
public void testCanonicalPath() throws RepositoryException {
RepositoryLock lockA = new RepositoryLock(directory.getPath());
lockA.acquire();
try {
File parent = new File(directory, "..");
RepositoryLock lockB = new RepositoryLock(
new File(parent, directory.getName()).getPath());
lockB.acquire();
fail("Can acquire an already acquired lock using a different path");
} catch (RepositoryException e) {
}
lockA.release();
}