Testcase for resolving object factories using supertypes and also include java.lang.Object