TwoSum { public int[] twoSum(int[] nums, int target) { return null; }  int[] twoSum(int[] nums, int target);  }
@Test public void testTwoSum() { int i = 2; int[] nums = allNums[i]; int target = targets[i]; int[] result = results[i]; Assert.assertArrayEquals(result, testObjects[1].twoSum(nums, target)); }
@Test public void testAll() { for (int oi = 0; oi < testObjects.length; oi++) { for (int i = 0; i < targets.length; i++) { int[] nums = allNums[i]; int target = targets[i]; int[] result = results[i]; Assert.assertArrayEquals(result, testObjects[oi].twoSum(nums, target)); } } }