### Question:
LonLatMapStrategy implements MapStrategy { public PlotPoint map(SamplingPoint samplingPoint) { final double x = (samplingPoint.getLon() + 180.0) / 360.0; final double y = (90.0 - samplingPoint.getLat()) / 180.0; final int i = (int) (y * height); final int k = (int) (x * width); return new PlotPoint(k, i); } LonLatMapStrategy(int width, int height); @Override void initialize(List<SamplingPoint> samplingPoints); PlotPoint map(SamplingPoint samplingPoint);  }### Answer:
@Test public void testMap() { SamplingPoint samplingPoint = new SamplingPoint(-34.4, 12.66, 77745387L, 0.3); PlotPoint point = strategy.map(samplingPoint); assertNotNull(point); assertEquals(323, point.getX()); assertEquals(171, point.getY()); samplingPoint = new SamplingPoint(66.886, -42.66, 77745387L, 0.3); point = strategy.map(samplingPoint); assertNotNull(point); assertEquals(548, point.getX()); assertEquals(294, point.getY()); }