@Test
public void testQueryWrappingED50LatLon() throws Exception {

    ReferencedEnvelope envelope = new ReferencedEnvelope(-90, 45, -190, 60, ED50_LATLON);
    ProjectionHandler handler = ProjectionHandlerFinder.getHandler(envelope, ED50_LATLON, true);
    assertNull(handler.validAreaBounds);
    List<ReferencedEnvelope> envelopes = handler.getQueryEnvelopes();
    assertEquals(2, envelopes.size());
    ReferencedEnvelope expected = new ReferencedEnvelope(170, 180, -90, 45, ED50_LATLON);
    assertTrue(envelopes.remove(envelope));
    assertEquals(expected, envelopes.get(0));
}