Tests resultType before trying to use default object factory to create new instance