Index: jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ShareableNodeTest.java =================================================================== --- jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ShareableNodeTest.java (revision 1359359) +++ jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ShareableNodeTest.java (working copy) @@ -1236,10 +1236,13 @@ try { // move shareable node - workspace.move(b.getPath(), a2.getPath() + "/b"); - fail("Moving a mix:shareable should fail."); + String newPath = a2.getPath() + "/b"; + workspace.move(b.getPath(), newPath); + // move was performed using the workspace, so refresh the session (may not be required by impl) ... + b.getSession().refresh(false); + assertEquals(newPath, b.getPath()); } catch (UnsupportedRepositoryOperationException e) { - // expected + // one possible outcome } } @@ -1263,9 +1266,10 @@ try { // move shareable node - session.move(b.getPath(), a2.getPath() + "/b"); + String newPath = a2.getPath() + "/b"; + session.move(b.getPath(), newPath); session.save(); - fail("Moving a mix:shareable should fail."); + assertEquals(newPath, b.getPath()); } catch (UnsupportedRepositoryOperationException e) { // expected }