XWIKI-8839: XWikiDocument.getXObject(EntityReference classReference, int nb) ignores the object number and always returns the first object
* add tests