Main { public static int leapYearCount(int year) { return year; }  static int leapYearCount(int year);  }
@Test(timeout = 2000) public void leapYearCount() throws Throwable { for (int[] leap : leaps) { String message = String.format("Main.leapYearCount(%s)", leap[0]); assertEquals(message, leap[1], TestUtils.invokeMethod(mainClass, leapYearCount, leap[0])); } }