### Question:
WriterHelper { static float[][] createLatBoundsData(GridDef gridDef) { final float[][] data = new float[gridDef.getHeight()][2]; for (int y = 0; y < gridDef.getHeight(); y++) { data[y][1] = (float) (gridDef.getCenterLat(y) + gridDef.getResolution() * 0.5); data[y][0] = (float) (gridDef.getCenterLat(y) - gridDef.getResolution() * 0.5); } return data; } private  WriterHelper();   }### Answer:
@Test public void testCreateLatBoundsData() { final GridDef gridDef = SpatialResolution.DEGREE_5_00.getGridDef(); final float[][] latBoundsData = WriterHelper.createLatBoundsData(gridDef); assertEquals(36, latBoundsData.length); assertEquals(2, latBoundsData[0].length); assertEquals(85.0, latBoundsData[0][0], 1e-8); assertEquals(90.0, latBoundsData[0][1], 1e-8); assertEquals(0.0, latBoundsData[17][0], 1e-8); assertEquals(5.0, latBoundsData[17][1], 1e-8); assertEquals(-90.0, latBoundsData[35][0], 1e-8); assertEquals(-85.0, latBoundsData[35][1], 1e-8); }