@Test(dataProvider = "nextElements")
public void test(int value, int next) {

    System.out.printf("#######test value = %d\n", value);
    assertEquals(new NextGreaterElement().nextGreaterElementIII(value), next);
}