### Question:
GlobeMover { public void moveGlobe(AbstractViewerControlTranslator viewer, MapManager mapManager, GeographicPosition position, Vector2i mouseScreenPos) { if (position != null) { Vector2i previousMouseCoordinatesScreenPosition = mapManager.convertToPoint(position); viewer.moveView(previousMouseCoordinatesScreenPosition, mouseScreenPos); } }  void moveGlobe(AbstractViewerControlTranslator viewer, MapManager mapManager, GeographicPosition position,
            Vector2i mouseScreenPos);  }### Answer:
@Test public void testMoveGlobe() { EasyMockSupport support = new EasyMockSupport(); MockAbstractviewerControlTranslator viewer = new MockAbstractviewerControlTranslator(); GeographicPosition position = new GeographicPosition(LatLonAlt.createFromDegrees(10d, 10d)); Vector2i mouseScreenPos = new Vector2i(50, 50); Vector2i previousPos = new Vector2i(25, 25); MapManager mapManager = createMapManager(support, position, previousPos); support.replayAll(); GlobeMover mover = new GlobeMover(); mover.moveGlobe(viewer, mapManager, position, mouseScreenPos); mover.moveGlobe(viewer, mapManager, null, new Vector2i(10, 10)); assertEquals(previousPos, viewer.getMoveFrom()); assertEquals(mouseScreenPos, viewer.getMoveTo()); support.verifyAll(); }