@Test public void saveMissesProperty() throws RepositoryException {
assumeTrue(!NodeImpl.SAVE_SESSION);
try {
prop1.setValue("changed");
prop2.setValue("changed");
prop1.save();
fail("Expected UnsupportedRepositoryOperationException");
}
catch ( UnsupportedRepositoryOperationException e) {
assertTrue(e.getCause() instanceof CommitFailedException);
}
finally {
session.refresh(false);
}
}