@Test
public void testGetInverse() throws Exception {

    PixelPos resultPos = new PixelPos();
    final MathTransform2D sceneToModelTransform = provider.getSceneToModelTransform();
    sceneToModelTransform.transform(new PixelPos(1, 1), resultPos);
    assertEquals(0, (int)resultPos.getX());
    assertEquals(3, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(2, 2), resultPos);
    assertEquals(1, (int)resultPos.getX());
    assertEquals(4, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(3, 3), resultPos);
    assertEquals(2, (int)resultPos.getX());
    assertEquals(5, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(4, 4), resultPos);
    assertEquals(3, (int)resultPos.getX());
    assertEquals(6, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(5, 5), resultPos);
    assertEquals(4, (int)resultPos.getX());
    assertEquals(7, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(6, 6), resultPos);
    assertEquals(5, (int)resultPos.getX());
    assertEquals(8, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(7, 7), resultPos);
    assertEquals(6, (int)resultPos.getX());
    assertEquals(9, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(8, 8), resultPos);
    assertEquals(7, (int)resultPos.getX());
    assertEquals(10, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(9, 9), resultPos);
    assertEquals(8, (int)resultPos.getX());
    assertEquals(11, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(10, 10), resultPos);
    assertEquals(9, (int)resultPos.getX());
    assertEquals(12, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(11, 11), resultPos);
    assertEquals(10, (int)resultPos.getX());
    assertEquals(13, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(12, 12), resultPos);
    assertEquals(11, (int)resultPos.getX());
    assertEquals(14, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(13, 13), resultPos);
    assertEquals(12, (int)resultPos.getX());
    assertEquals(15, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(14, 14), resultPos);
    assertEquals(13, (int)resultPos.getX());
    assertEquals(16, (int)resultPos.getY());
    sceneToModelTransform.transform(new PixelPos(15, 15), resultPos);
    assertEquals(14, (int)resultPos.getX());
    assertEquals(17, (int)resultPos.getY());
}