If a person subpoenas or otherwise seeks to compel a mediator to testify or produce a writing, as defined in Section 250, and the court or other adjudicative body determines that the testimony or writing is inadmissible under this chapter, or protected from disclosure under this chapter, the court or adjudicative body making the determination shall award reasonable attorney’s fees and costs to the mediator against the person seeking the testimony or writing.