This action is brought to foreclose a mechanic’s lien filed against certain property owned by the defendant Morgenroth, and upon *425the case coming on for argument the defendant interposed an objection in the nature of a demurrer that the complaint did not state facts sufficient to constitute a cause of action, in that it did not allege that at the time of filing the lien in suit there still remained in the hands of the said Morgenroth funds .due or to grow due to the contractors, Schneider and Herter, and funds in the hands of the said contractors, due or to grow due to the sub-contractors, Lyman and Costello, to whom the plaintiff furnished the goods for the value of which this action is brought. The plaintiff was permitted to amend his complaint, and an adjournment was granted to allow the plaintiff to discover the evidence necessary to support this new allegation.
The plaintiff thereupon made application under the provisions of sections 870, 871 and 872 of the Code of Civil Procedure, for an order directing Abraham M. Morgenroth, Ernest E. W. Schneider and Henry Herter to submit to an examination before trial, the affidavit of the plaintiff alleging that the testimony of these three men was “ material and necessary and indispensable to this plaintiff to enable him to prove the allegation above mentioned,” and that “ the information sought by the plaintiff is peculiarly and entirely within the knowledge of the persons above named, and is not known to plaintiff,” and “ that it is impossible for plaintiff in any other way to prove what amounts, if any, were due or to become due at the time of the filing of said lien.” The order asked for was granted, and a motion to vacate the same being made upon the papers, the order was vacated as to Schneider and Herter, who were not parties to the action, but was sustained as to Mr, 'Morgenroth. It thus appears by the plaintiff’s affidavit that he will be able to prove his ease, if he in fact has a case, by the testimony of Schneider and Herter; that the evidence “ is peculiarly and entirely within the knowledge of the persons above named,” and the only purpose of this examination appears to be to compel the defendant Morgenroth to disclose to the plaintiff whether or not he has a cause of action. Indéed, plaintiff’s counsel, in support of the order, admits that the object of the examination-is a mere fishing expedition, for he says : “ If the testimony of this defendant should be adverse to plaintiff, then plaintiff should know it in time to hunt up other witnesses and to procure all the evidence of every kind obtainable on the *426question.” In Sheehan v. Albany & B. Turnpike Co. (28 N. Y. St. Repr. 20, 21) it was said that “the provisions for such examinar tion are not intended to enable a party to discover' what his opponent’s testimony will be, so that he may obtain witnesses to contradict it. Experience shows that if a' party discovers what his opponent’s testimony will be, and has time enough, he is often successful in discovering also witnesses • for contradiction.” Both the Appellate Division in the first departmént and this court have held that it was not proper, either before or after the commence- < mcht of an action, to permit an examination for the purpose of enabling the other party to determine whether he had a cause of action. (Matter of Anthony & Co., 42 App. Div. 66, 68; Long Island Bottlers v. Bottling Brewers, 65 id. 459.)
We are clearly of opinion that the plaintiff has not shown a proper case for the examination of a party before trial. “ The practice of examining a party before trial at the instance of the opposite party should be carefully guarded by the court, so that it may not be productive of evil. When it is evident that the party asking for the examination is sufficiently acquainted with the facts of the case to obtain the proof which he needs, and that, in fact, he desires the examination only to discover to what his opponent will testify, then the order should not be granted, or, if it has been granted, should bex set aside.” (Sheehan v. Albany & B. Turnpike Co., supra.) Two' of the witnesses who the plaintiff says are essential to his cause of action are not parties to the suit, and no reason appears- why they may not be witnesses upon the trial. We are of opinion that this is not. a proper case for the granting of an order compelling the defendant to submit to an examination.
The order appealed from should be reversed, and the order directing the examination should be vacated.
All concurred.
Order reversed, with ten dollars costs and disbursements, and motion granted, with costs.