listener.setExpected(MapPaneEvent.Type.DISPLAY_AREA_CHANGED);
mapPane.setDisplayArea(WORLD);
assertTrue(listener.await(MapPaneEvent.Type.DISPLAY_AREA_CHANGED, WAIT_TIMEOUT));
MapPaneEvent event = listener.getEvent(MapPaneEvent.Type.DISPLAY_AREA_CHANGED);
assertNotNull(event.getData());
assertTrue(event.getData() instanceof ReferencedEnvelope);
// Since no screen area has been set the envelope sent via the
// event should be equal to that passed to setDisplayArea
ReferencedEnvelope eventEnv = (ReferencedEnvelope) event.getData();
assertTrue(WORLD.boundsEquals2D(eventEnv, TOL));
}