### Question:
XrayGogglesController { public void close() { myWindowValidator.close(); myXrayer.close(); myScreenPosManager.close(); myScreenToGeo.close(); myResizer.close(); } XrayGogglesController(MapManager mapManager, GeometryRegistry geometryRegistry, ControlRegistry controlRegistry,
            XrayGogglesModel model); void close();  }### Answer:
@Test public void test() { EasyMockSupport support = new EasyMockSupport(); ScreenViewer viewer = createViewer(support); MapManager mapManager = createMapManager(support, viewer); GeometryRegistry geometryRegistry = createGeometryRegistry(support); XrayGogglesModel model = new XrayGogglesModel(); ControlRegistry controlRegistry = createControlRegistry(support); support.replayAll(); XrayGogglesController controller = new XrayGogglesController(mapManager, geometryRegistry, controlRegistry, model); assertNotNull(model.getUpperLeftGeo()); controller.close(); assertNull(model.getUpperLeft()); mapManager.getViewChangeSupport().notifyViewChangeListeners(viewer, (r) -> { r.run(); }, ViewChangeType.VIEW_CHANGE); assertNull(model.getUpperRight()); support.verifyAll(); }