### Question:
SumatraMath { public static double max(final double... values) { if (values.length == 0) { throw new IllegalArgumentException("No values"); } double maximum = values[0]; for (final double f : values) { if (f > maximum) { maximum = f; } } return maximum; } private  SumatraMath(); static double sqrt(final double number); static double square(final double x); static double min(final double... values); static double max(final double... values); static boolean hasDigitsAfterDecimalPoint(final double number); static boolean isEqual(final double a, final double b, final double tolerance); static boolean isEqual(final double a, final double b); static boolean isBetween(final double x, final double min, final double max); static boolean isZero(final double v); static double relative(final double value, final double from, final double to); static double cap(final double value, final double min, final double max); static List<Double> quadraticFunctionRoots(final double a, final double b, final double c); static List<Double> cubicFunctionRoots(final double a3, final double b2, final double c1, final double d0); static double getEqualTol(); static double acos(double x); static double asin(double x); static double atan2(double y, double x); static double cos(double angle); static double sin(double angle); static double tan(double angle);  }### Answer:
@Test public void testMax() { Assertions.assertThat(SumatraMath.max(1)).isEqualTo(1.0); Assertions.assertThat(SumatraMath.max(1, 2)).isEqualTo(2.0); Assertions.assertThat(SumatraMath.max(1, 2, 3)).isEqualTo(3.0); Assertions.assertThat(SumatraMath.max(3, 2, 1)).isEqualTo(3.0); Assertions.assertThat(SumatraMath.max(1, 3, 2)).isEqualTo(3.0); Assertions.assertThat(SumatraMath.max(-1, 2, 3)).isEqualTo(3.0); Assertions.assertThat(SumatraMath.max(1, 2, -1)).isEqualTo(2.0); }