### Question:
TransformImpl implements Transform { @Override public Point2D transform(final double x, final double y) { return new Point2D((x * scale.getX()) + translate.getX(), (y * scale.getY()) + translate.getY()); } TransformImpl(final Point2D translate, final Point2D scale); @Override Point2D getTranslate(); @Override Point2D getScale(); @Override Point2D transform(final double x, final double y); @Override Point2D inverse(final double x, final double y); static final TransformImpl NO_TRANSFORM; }### Answer:
@Test public void testTransform() { final Point2D t = tested.transform(1, 1); assertEquals(12, t.getX(), 0); assertEquals(25, t.getY(), 0); final Point2D t1 = tested.transform(2, 2); assertEquals(14, t1.getX(), 0); assertEquals(30, t1.getY(), 0); }