Sean Patrick Maloney’s dual campaign for state attorney general and Congress faced its first legal test in Albany County Supreme Court on Tuesday.

Martin E. Connor appeared before Justice Denise Hartman to explain why Maloney’s concurrent campaigns are legal. Maloney is the incumbent Democratic nominee for a congressional district in the lower Hudson Valley, but is also seeking to become the Democratic nominee for state attorney general.