This PR relates to the issue #33746. I added conditionals that verify if FactoryBean.OBJECT_TYPE_ATTRIBUTE is an instance of Class<?> or ResolvableType and I also created two more tests that test the object type attribute with Class and ResolvableType values.

Comment From: wilkinsona

Thanks very much, @bbulgarelli.