OAK-766: test illustrating the issue; applied and extended patch provided by antonio sanso. thanks!

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1467254 13f79535-47bb-0310-9956-ffa450edef68