Main { public static double integrate(DoubleUnaryOperator f, double a, double b) { return f.applyAsDouble(a); }  static double integrate(DoubleUnaryOperator f, double a, double b);  }
@Test(timeout = 8000L) public void integrateSample1() throws Throwable { integrate(x -> 1, 0, 10, 10, "x -> 1"); }
@Test(timeout = 8000L) public void integrateSample2() throws Throwable { integrate(x -> x, -458, 100, -99882.0004536563, "x -> x"); }