And with unaffiliated voters the fastest-growing segment of the electorate, it is also a test of whether yet another big-city Democrat can be elected by riding a wave of populism, much as Mayor Bill de Blasio of New York did last fall.