“Unjust enrichment applies wherever justice requires compensation to be given for property or services rendered .... A right of recovery under the doctrine of unjust enrichment is essentially equitable, its basis being that in a given situation it is contrary to equity and good conscience for one to retain a benefit which has come to him at the expense of another. . . . With no other test than what, under a given set of circumstances, is just or unjust, equitable or inequitable, conscionable or unconscionable, it becomes necessary in any case where the benefit of the doctrine is claimed, to examine the circumstances and the conduct of the parties and apply this standard. . . . Unjust enrichment is, consistent with the principles of equity, a broad and flexible remedy. . . . Plaintiffs seeking recovery *787for unjust enrichment must prove (1) that the defendants were benefited, (2) that the defendants unjustly did not pay the plaintiffs for the benefits, and (3) that the failure of payment was to the plaintiffs’ detriment.” (Citations omitted; internal quotation marks omitted.) Hartford Whalers Hockey Club v. Uniroyal Goodrich Tire Co., 231 Conn. 276, 282-83, 649 A.2d 518 (1994).