@Test
public void getEnvelopeByPixels() throws Exception {

    AffineTransform tr = pane.getMapContent().getViewport().getScreenToWorld();
    Rectangle2D screenRect = new Rectangle2D.Double(x - 0.5, y - 0.5, 1, 1);
    Rectangle2D expected = tr.createTransformedShape(screenRect).getBounds2D();
    
    createEvent(x, y);
    ReferencedEnvelope actual = mapEv.getEnvelopeByPixels(1);
    
    assertRect(expected, actual);
}