XWIKI-9102: Add API to easily create a DocumentReference from a LocalDocumentReference
* fix test