### Question:
WriterHelper { static float[] createLonData(GridDef gridDef) { final float[] lonData = new float[gridDef.getWidth()]; for (int x = 0; x < gridDef.getWidth(); x++) { lonData[x] = (float) gridDef.getCenterLon(x); } return lonData; } private  WriterHelper();   }### Answer:
@Test public void testCreateLonData() throws Exception { final GridDef gridDef = SpatialResolution.DEGREE_10_00.getGridDef(); final float[] lonData = WriterHelper.createLonData(gridDef); assertArrayEquals(EXPECTED_LON, lonData, 1e-8f); }