Add test to assess claims in SPR-10411

This commit verifies that the return type of a parameterized instance
factory method is properly resolved.

Issue: SPR-10411