Where the parties' agreement falls within the ambit of the statute, New York will enforce the choice-of-law clause, regardless of whether there is a connection between the transaction and New York.
ABB, Inc. v. Havtech, LLC, NY Slip Op 07693 (1st Dep't October 24, 2019)
Here is the decision.