example unit test, with a mocking helper to support continued JCR interactions at API level