### Question:
MathUtils { public static double pow3(double value) { return value * value * value; } private  MathUtils(); static double pow2(double value); static double pow3(double value); static double pow4(double value); static boolean nearZero(double value, double tolerance); static boolean nearOne(double value, double tolerance);  }### Answer:
@Test public void test_pow3() { assertThat(MathUtils.pow3(3)).isEqualTo(27); assertThat(MathUtils.pow3(2)).isEqualTo(8); assertThat(MathUtils.pow3(1)).isEqualTo(1); assertThat(MathUtils.pow3(0)).isEqualTo(0); assertThat(MathUtils.pow3(-1)).isEqualTo(-1); assertThat(MathUtils.pow3(-2)).isEqualTo(-8); assertThat(MathUtils.pow3(-3)).isEqualTo(-27); assertThat(MathUtils.pow3(Double.POSITIVE_INFINITY)).isEqualTo(Double.POSITIVE_INFINITY); assertThat(MathUtils.pow3(Double.NEGATIVE_INFINITY)).isEqualTo(Double.NEGATIVE_INFINITY); assertThat(MathUtils.pow3(Double.NaN)).isNaN(); assertThat(MathUtils.pow3(Double.POSITIVE_INFINITY)).isEqualTo(Math.pow(Double.POSITIVE_INFINITY, 3)); assertThat(MathUtils.pow3(Double.NEGATIVE_INFINITY)).isEqualTo(Math.pow(Double.NEGATIVE_INFINITY, 3)); assertThat(MathUtils.pow3(Double.NaN)).isNaN(); }