Verify if return object is same class of entityName parameters