delivered the opinion of the Court.
We granted petitioner’s application for leave to appeal from the denial of habeas corpus. She is a practicing lawyer in Montgomery County and had formed the conclusion that Chapters 151 and 174 of the Acts of the General Assembly of 1955, which together repealed and re-enacted Sec. 92A of Art. 52, Code, 1951, had abolished the office of justices of the peace, and justices of the peace designated as committing magistrates, for Montgomery County and transferred all of their former authority, power and jurisdiction to the judges of the newly created People’s Court for Montgomery County. Chapters 151 and 174 of the Acts of 1955 were passed pursuant to the authority of Art. 4, Sec. 41A and 41B of the Constitution of Maryland. Despite their passage the Governor appointed twenty-three justices of the peace for Montgomery County for the two year term beginning May 1, 1955, and designated four of them as committing magistrates, and the government of the county appropriated funds for their salaries and expenses. They have continued to function as they did before the effective date of the 1955 legislation.
In order to make a test case to establish that the justices of the peace, and those of them who are committing magistrates, were without legal power or authority, the petitioner, on July 10, 1955, parked her automobile in a street intersection in Montgomery County in violation of Code, 1951, Art. 66 1/2, Sec. 210 (a) (3). A police officer witnessed this violation of the law. The lady being a resident of Maryland, the officer, as required by Code, 1951, Art. 6614, Sec. 284 (1955 Supp.), asked her to sign a summons agreeing to appear at the People’s Court on a day named. Petitioner refused to sign the summons and was taken by the officer before Luther G. *260 Burdette, a justice of the peace who acted regularly as a committing magistrate, although not formally designated as such. It appears from the record that petitioner refused to post collateral of $6.45 and was thereupon committed to the custody of the sheriff of Montgomery County, bail being set in the commitment at $50.00. Almost immediately, that same Sunday afternoon, habeas corpus was sought from Judge Anderson of the Circuit Court for Montgomery County on the ground that petitioner was being illegally detained by the jailer of the Montgomery County jail, and a few minutes later, the judge released her on her own recognizance, pending a further hearing on the application for the writ. On July 18, argument was had before the circuit court, Judges Prescott and Anderson sitting. It was urged that petitioner’s commitment to jail by the justice of the peace was illegal and void because the 1955 acts had abolished his office in Montgomery County and transferred all its jurisdiction and powers to the People’s Court. On July 28, the court handed down an opinion in which it ruled on this contention and held that “* * * the General Assembly intended to grant unto the Judges of the Peoples Court for this County the same power and authority previously vested in those Justices of the Peace designated as trial magistrates, and the other Justices of the Peace, and not to take away from the Justices of the Peace sitting only as committing magistrates the limited powers now reposed in them. We, therefore, find that the action of the Justice of the Peace in issuing a warrant against the traverser was within the scope of his authority, so the petitioner will be remanded to the custody of the Sheriff until released by due process of law.” We think that the court was right in refusing to issue the writ but that its action was predicated on the wrong grounds, and do not find it necessary or appropriate to decide the question decided below — the only question argued there or here.
Open to very serious doubt is whether petitioner could challenge by
habeas corpus
the authority of the justice
*261
of the peace to act since he acted under color of title to a constitutional office and no court had declared that he was not legally able to do so, under the provisions of Chap. 321, Sec. 5 of the Acts of 1927, codified as Sec. 598 of the Code of Public Local Laws of Montgomery County (Flack, 1947), or otherwise. There are many decisions by able courts, holding that
habeas corpus
will not issue to challenge the effect or results of the action of a
de facto
judicial officer, including a justice of the peace. It may well be that the committing magistrate, who acted in the case before us, if not a
de jure
officer— as to which we express no opinion — was, at the least, a
de facto
officer. Constitution of Maryland, Art. 4, Sec. 42.
Kimble v. Bender,
Traditionally, and in practice, the writ of
habeas corpus
has been and is available only to liberate persons who are in actual, involuntary, illegal restraint. The courts have not lent themselves to the issuance of the
*262
writ when restraint was theoretical or technical only, or was actual but by choice, and the real purpose of the writ was to test the validity of a law and not, in fact, to bring about release from involuntary confinement. It is clear that
habeas corpus
will not be granted one who is free on bail. As it is put in
Ex parte Powell
(Wash.),
Made plain also by the cases is the rule that if the confinement is voluntary, there is no need for the issuance of the writ and it will be denied. In
Ex parte Ford
(Calif.),
In the case before us, petitioner’s detention and restraint, such as it was, was self-contrived and self-imposed. When she was observed by the police officer violating the statute by parking in an intersection, he was required under Code, 1951, 1955 Supp., Art. 66%, Sec. 284, to tell her what as a lawyer she knew already, that she had the absolute right (and under the statute the obligation) to sign the summons. If she had done so, she would have been at complete liberty, without any restraint whatever, save the necessity of attending the trial in the People’s Count for Montgomery County on July 14, the date set. She refused to sign the summons with the deliberate purpose of bringing about her incarceration, so she could seek the writ of
habeas corpus
to test the status of the committing magistrate. Furthermore, under Code, 1951, Art. 66%, Sec. 283, peti
*265
tioner was entitled to deposit immediately with the justice of the peace, or the clerk of the justice of the peace, “* * * a sum determined by the Magistrate or Clerk to the Magistrate not to exceed the maximum amount prescribed as the fine for such offense * * *,” in which case she could be released from custody, awaiting trial. As we have noted, the sum determined in this case was $6.45. The petitioner again refused to deposit the collateral which would have enabled her to go free, even as she had refused to sign the summons so as to make sure that she would be taken into custody. It is not contended that she would not have, in fact, been freed if she had put up collateral. An hour or so later, she was released by the Circuit Court for Montgomery County on her own recognizance, and has been at liberty ever since. The record does not reveal why the trial of the traffic charge did not occur on July 14, when it was scheduled, but the inference is permissible that the trial was delayed so that the circuit court could act on the application for the writ. In any event, we think that the circuit court need not have acted on the application for the writ once it had released the petitioner on her own recognizance. The recognizance could have been continued until the trial of the traffic case. There is no attack on the statute making what petitioner did a crime. Neither the constitutionality, the validity or the application of that statute is challenged. If petitioner’s claim that the magistrate who committed her to jail (at her own invitation) had no power in law to do so, be assumed for the argument, there remains the fact that she was properly charged with committing a crime and that a magistrate or court of competent jurisdiction could try her for that offense. In
Parrish v. State,
The lower court should have denied the writ for the reasons we have set forth and need not have and should not have gone into the question of the jurisdiction and powers of the justice of the peace.
The case is remanded for the entry of an order dismissing the petition for the writ on the grounds set forth in this opinion.
Order affirmed, with costs.
