### Question:
Cut { public static boolean isLeftOf(double[] point, Cut cut) { return point[cut.getDimension()] <= cut.getValue(); } Cut(int dimension, double value); static boolean isLeftOf(double[] point, Cut cut); int getDimension(); double getValue(); @Override String toString();  }### Answer:
@Test public void testIsLeftOf() { double[] point = new double[] { 1.0, 2.0, 3.0, 4.0 }; assertTrue(Cut.isLeftOf(point, cut)); point[2] = 99.9; assertFalse(Cut.isLeftOf(point, cut)); }