### Question:
RandomCutTree { public void deletePoint(WeightedPoint weightedPoint) { checkState(root != null, "root must not be null"); deletePoint(root, weightedPoint.getPoint(), weightedPoint.getSequenceIndex()); } protected  RandomCutTree(Builder<?> builder); static Builder builder(); static RandomCutTree defaultTree(long randomSeed); static RandomCutTree defaultTree(); boolean centerOfMassEnabled(); boolean storeSequenceIndexesEnabled(); void deletePoint(WeightedPoint weightedPoint); void addPoint(WeightedPoint weightedPoint); R traverseTree(double[] point, Visitor<R> visitor); R traverseTreeMulti(double[] point, MultiVisitor<R> visitor); Node getRoot(); static final boolean DEFAULT_STORE_SEQUENCE_INDEXES_ENABLED; static final boolean DEFAULT_CENTER_OF_MASS_ENABLED; }### Answer:
@Test public void testDeletePointInvalid() { assertThrows(IllegalStateException.class, () -> tree.deletePoint(new WeightedPoint(new double[] { -1, 0 }, 99, 0))); assertThrows(IllegalStateException.class, () -> tree.deletePoint(new WeightedPoint(new double[] { -1.01, 0.01 }, 3, 0))); }