FindMinimuminRotatedSortedArray { public int findMin(int[] nums) { return 0; }  int findMin(int[] nums);  }
@Test public void testFindMin() { int[] nums = {4, 5, 6, 7, 0, 1, 2}; int result = 0; Assert.assertEquals(result, testObjects[0].findMin(nums)); Assert.assertEquals(result, testObjects[1].findMin(nums)); }
@Test public void testAll() { for (int oi = 0; oi < testObjects.length; oi++) { for (int i = 0; i < allNums.length; i++) { int[] nums = allNums[i]; int result = results[i]; Assert.assertEquals(result, testObjects[oi].findMin(nums)); } } }