### Question:
MapModel extends Observable { public void setRegion(Quadrilateral<GeographicPosition> region) { myRegion = region; setChanged(); notifyObservers(REGION_PROP); }  int getHeight(); Quadrilateral<GeographicPosition> getRegion(); ScreenBoundingBox getViewport(); int getWidth(); void setHeightWidth(int height, int width); void setRegion(Quadrilateral<GeographicPosition> region); void setViewport(ScreenBoundingBox viewport); static final String REGION_PROP; static final String SIZE_PROP; }### Answer:
@Test public void testSetRegion() { EasyMockSupport support = new EasyMockSupport(); GeographicBoundingBox region = new GeographicBoundingBox(LatLonAlt.createFromDegrees(-45d, -90d), LatLonAlt.createFromDegrees(0, 0)); MapModel model = new MapModel(); Observer observer = createObserver(support, model, MapModel.REGION_PROP, 1); model.addObserver(observer); support.replayAll(); model.setRegion(region); assertEquals(region, model.getRegion()); support.verifyAll(); }