@Test(dataProvider = "medSlideWindosDP")
public void testMed(int[] nums, int k, double[] medWindows) {

    double[] actual = SlidingWindow.medianSlidingWindow(nums, k);
    assertEquals(actual, medWindows, String.format("actual = %s, expected = %s",
            DoubleStream.of(actual).mapToObj(String::valueOf).collect(joining(",", "[", "]")),
            DoubleStream.of(medWindows).mapToObj(String::valueOf).collect(joining(",", "[", "]"))
            ));
}