@Test(dataProvider = "rangeObjects")
public void test(int[] array, int target, int[] expected) {

    int[] range = new SearchRange().searchRange(array, target);
    assertEquals(range.length, expected.length);
    for (int i = 0; i < range.length; i++) {
        assertEquals(range[i], expected[i], String.format("actual[%d] = %d, expected[%d] = %d", i, range[i], i, expected[i]));
    }
}