### Question:
CursorPoint { public CursorPoint getCursorPointScaledBy(double scaleFactor) { return (new CursorPoint((int) (this.x * scaleFactor), (int) (this.y * scaleFactor), (int) (delay * scaleFactor))); } CursorPoint(int x, int y, int delay); double getDistanceFromOrigin(); double getThetaFromOrigin(); CursorPoint getCursorPointTranslatedBy(CursorPoint startingCursorPoint); CursorPoint getCursorPointScaledBy(double scaleFactor); CursorPoint getCursorPointRotatedBy(double angleOfRotation); CursorPoint getCursorPointTransformedByParabola(double[] parabolaEquation); CursorPoint getCursorPointWithNewDelay(int delay); void display(); public int x; public int y; public int delay; }### Answer:
@Test void testCursorPointScaling() { CursorPoint a = new CursorPoint(0, 0, 0); CursorPoint b = new CursorPoint(100, 0, 0); CursorPoint c = new CursorPoint(100, 200, 0); CursorPoint d = new CursorPoint(-400, -300, 0); CursorPoint e = a.getCursorPointScaledBy(1.1); CursorPoint f = b.getCursorPointScaledBy(0.95); CursorPoint g = c.getCursorPointScaledBy(1.23); CursorPoint h = d.getCursorPointScaledBy(1.07); assertTrue(e.x == 0 && e.y == 0); assertTrue(f.x == 95 && f.y == 0); assertTrue(g.x == 123 && g.y == 246); assertTrue(h.x == -428 && h.y == -321); }