@Test(dataProvider = "wiggleSortArray")
public void testWiggleSortN(int[] nums) {

    new WiggleSort().wiggleSortN(nums);
    assertTrue(String.format("%s is not wiggle sorted", IntStream.of(nums).mapToObj(String::valueOf).
                    collect(joining(",", "[", "]"))),
            wiggleSortedN(nums));
}