@Test
public void getEnvelopeByWorld() throws Exception {

    final double w = 0.1;
    AffineTransform tr = pane.getMapContent().getViewport().getScreenToWorld();
    Point2D p = new Point2D.Double(x, y);
    tr.transform(p, p);
    Rectangle2D expected = new Rectangle2D.Double(p.getX() - w/2, p.getY() - w/2, w, w);
    
    createEvent(x, y);
    ReferencedEnvelope actual = mapEv.getEnvelopeByWorld(0.1);
    
    assertRect(expected, actual);
}