@Test
public void testGetSceneToModelTransform() throws TransformException {

    final Point2D.Double[] ptSrcs = new Point2D.Double[]{new Point2D.Double(2, 2), new Point2D.Double(3.5, 2.5)};
    final Point2D.Double[] expected = new Point2D.Double[]{new Point2D.Double(0, 0), new Point2D.Double(1.5, 0.5)};
    for (int i = 0; i < 2; i++) {
        final Point2D.Double ptDst = new Point2D.Double();
        final Point2D result = sceneTransformProvider.getSceneToModelTransform().transform(ptSrcs[i], ptDst);
        assertNotNull(result);
        assertEquals(ptDst.getX(), result.getX(), 1e-8);
        assertEquals(ptDst.getY(), result.getY(), 1e-8);
        assertEquals(expected[i].getX(), ptDst.getX(), 1e-8);
        assertEquals(expected[i].getY(), ptDst.getY(), 1e-8);
    }
}