### Question:
DiVector { public int getDimensions() { return dimensions; } DiVector(int dimensions);  DiVector(DiVector base); static DiVector addToLeft(DiVector left, DiVector right); int getDimensions(); DiVector scale(double z); void renormalize(double targetNorm); void componentwiseTransform(Function<Double, Double> function); double getHighLowSum(int i); double getHighLowSum(); final double[] high; final double[] low; }### Answer:
@Test public void testNew() { double[] expected = new double[dimensions]; assertEquals(dimensions, vector.getDimensions()); assertArrayEquals(expected, vector.high); assertArrayEquals(expected, vector.low); }