The federal court battle over a Massachusetts bar examination question about homosexual marriage has ended with the court accepting the plaintiff’s voluntary dismissal of the case.

On Monday, a Massachusetts federal judge granted Stephen Dunne’s request to dismiss his case against the bar examination testing agency, the state Supreme Judicial Court and four individual justices over a question on the state’s bar exam concerning homosexual marriage.