### Question:
FunctionUtils { @Deprecated public static double cube(double x) { return x * x * x; } private  FunctionUtils(); @Deprecated static double square(double x); @Deprecated static double cube(double x); static int toTensorIndex(int[] indices, int[] dimensions); static int[] fromTensorIndex(int index, int[] dimensions); static double[] unique(double[] in); static int[] unique(int[] in); static int getLowerBoundIndex(DoubleArray set, double value);  }### Answer:
@Test @SuppressWarnings("deprecation") public void testCube() { for (int i = 0; i < 100; i++) { final double x = Math.random(); assertThat(FunctionUtils.cube(x)).isCloseTo(x * x * x, offset(EPS)); } }