Former President Donald Trump sparred with a New York judge early and often Monday as he testified in a civil trial that could threaten his real estate empire and offered a preview of the legal drama that awaits the GOP front-runner as he campaigns for a 2024 rematch with President Biden.