FindPeakElement { public int findPeakElement(int[] nums) { return 0; }  int findPeakElement(int[] nums);  }
@Test public void testAll() { for (int i = 0; i < allNums.length; i++) { Assert.assertEquals(results[i], testObject.findPeakElement(allNums[i])); } }
@Test public void testFindPeakElement() { int[] nums = new int[] {1, 2, 3, 1}; int result = 2; Assert.assertEquals(result, testObject.findPeakElement(nums)); }