A defendant may challenge an order denying his forum non conveniens motion on an appeal from a final judgment even though CCP 418.10 allows a petition for writ of mandate from the order, just as it permits such a petition from denial of a motion to quash the summons for lack of personal jurisdiction.  But unlike the personal jurisdiction objection which is waive by a later general appearance after denial of the motion to quash, a general appearance does not waive the forum non conveniens motion.  Nor has the Legislature made the writ petition the exclusive appellate remedy from denial of a forum non conveniens motion.  Hence, the defendant may attack the denial on appeal from the final judgment.