In this action for declaratory judgment, plaintiff, the alleged insured, sought to have determined the question whether the defendant insurer was obligated, upon an automobile liability insurance policy, to defend plaintiff in a suit by a third party to recover damages resulting from *297 an automobile collision. Plaintiff took this appeal from the judgment of the trial court sustaining all the grounds of defendant’s general demurrer to plaintiff’s petition.
1. “The test of the sufficiency of a complaint in a declaratory judgment proceeding is not whether the complaint shows that the plaintiff is entitled to the declaration of rights in accordance with his theory, but whether he is entitled to a declaration of rights at all, so that even if the plaintiff is on the wrong side of the controversy, if he states the existence of a controversy which should be settled, he states a cause of suit for a declaratory judgment.”
Nationwide Mut. Ins. Co. v. Peek,
2. The first ground of demurrer, objecting broadly that “The allegations of the petition as a whole . . . fail to allege facts which entitle petitioner to a declaratory judgment or any other relief,” aptly raised the question whether plaintiff alleged a justiciable controversy, and decision on this ground of demurrer is controlled, adversely to plaintiff, by
U. S. Cas. Co. v. Georgia Ac. R. Co.,
The judgment of the trial court sustaining defendant’s general demurrer and dismissing plaintiff’s petition is affirmed on ground 1 with directions to the trial court to modify the judgment so as to exclude the sustaining of grounds 2, 3, 4 and 5 of the defendant’s general demurrer.
Judgment affirmed with direction.
