Such testimony or written assurances shall set forth in detail the manner in which the plaintiff complied with clause (A) or (B) and shall be made part of the record in the case. If the defendants appear in opposition to the application for a temporary restraining order they shall be afforded an opportunity to cross-examine the plaintiff's witnesses at such length as is reasonable under the circumstances and a like opportunity to introduce evidence in opposition thereto. Such a temporary restraining order shall be effective for no longer than five days and shall become void at the expiration of said five days and shall not be subject to renewal. No temporary restraining order or preliminary injunction shall be issued except on condition that the plaintiff shall first file an undertaking with adequate security in an amount to be fixed by the court sufficient in its opinion to recompense those enjoined for any loss, expense or damage caused by the improvident or erroneous issuance of such order of injunction, including all reasonable costs, together with a reasonable attorney's fee, and expense of defense against the order or against the granting of any injunctive relief sought in the same proceeding and subsequently denied by the court.
Mass. Gen. Laws ch. 214, § 6