getType() must return a type should be validated that is indicated by parameter, but definitely not a return.