@Test
public void getWorldPos() throws Exception {

    AffineTransform tr = pane.getMapContent().getViewport().getScreenToWorld();
    Point2D p = new Point2D.Double(x, y);
    tr.transform(p, p);
    
    createEvent(x, y);
    DirectPosition2D pos = mapEv.getWorldPos();
    
    assertEquals(p.getX(), pos.x, TOL);
    assertEquals(p.getY(), pos.y, TOL);
}