XCOMMONS-424: ReflectionUtils.resolveType does not work with child type not directly extending the passed type
* fix test
(cherry picked from commit 2448b5c374e1b02a0eea3bb8719a8c4ee85d28f7)

Conflicts:
	xwiki-commons-core/xwiki-commons-extension/xwiki-commons-extension-api/src/test/java/org/xwiki/extension/internal/DefaultScriptSafeProviderTest.java