In early stage of litigation, the defendants will test the complaint with a Motion to Dismiss (sometimes, "Demurrer"). However, this is before discovery, so the judge has to accept the factual allegations of the complaint to be true, when assessing the viability of the legal theories they support.
Basically, a win on this kind of motion simply means that the plaintiffs' attorney aren't complete fucking morons and don't know how to draft a complaint.
Whether or not the plaintiffs can back up their factual allegations with admissible, factual evidence, later in the case, is a whole different story.
Don't shit on the judge. (at least, not yet.)