SearchRange { public int[] searchRange(int[] nums, int target) { if (nums.length == 0) return NOT_FOUND; return searchRange(nums, 0, nums.length, 0, target); }  int[] searchRange(int[] nums, int target); int[] searchRange(int[] nums, int s, int t, int d, int target); final static int[] NOT_FOUND; }
@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])); } }