### Question:
WriterHelper { static float[][] createLonBoundsData(GridDef gridDef) { final float[][] data = new float[gridDef.getWidth()][2]; for (int x = 0; x < gridDef.getWidth(); x++) { data[x][0] = (float) (gridDef.getCenterLon(x) - gridDef.getResolution() * 0.5); data[x][1] = (float) (gridDef.getCenterLon(x) + gridDef.getResolution() * 0.5); } return data; } private  WriterHelper();   }### Answer:
@Test public void testCreateLonBoundsData() { final GridDef gridDef = SpatialResolution.DEGREE_5_00.getGridDef(); final float[][] lonBoundsData = WriterHelper.createLonBoundsData(gridDef); assertEquals(72, lonBoundsData.length); assertEquals(2, lonBoundsData[0].length); assertEquals(-180.0, lonBoundsData[0][0], 1e-8); assertEquals(-175.0, lonBoundsData[0][1], 1e-8); assertEquals(-5.0, lonBoundsData[35][0], 1e-8); assertEquals(0.0, lonBoundsData[35][1], 1e-8); assertEquals(175.0, lonBoundsData[71][0], 1e-8); assertEquals(180.0, lonBoundsData[71][1], 1e-8); }