Code of Civil Procedure § 1091
CHAPTER 2. Writ of Mandate [[1084.] - [1097.]]
On the trial, the applicant is not precluded by the return from any valid objection to its sufficiency, and may countervail it by proof either in direct denial or by way of avoidance.