### Question:
RegularAxisImpl extends AbstractReferenceableAxis<Double> implements RegularAxis, Serializable { @Override public Extent<Double> getCoordinateBounds(int index) { double centre = getCoordinateValue(index); if(isAscending()) { return Extents.newExtent(centre - 0.5 * spacing, centre + 0.5 * spacing); } else { return Extents.newExtent(centre + 0.5 * spacing, centre - 0.5 * spacing); } } RegularAxisImpl(String name, double firstValue, double spacing, int size,
            boolean isLongitude); @Override boolean wraps(); @Override double getCoordinateSpacing(); @Override Double getCoordinateValue(int index); @Override int size(); @Override boolean isAscending(); @Override String toString(); @Override Extent<Double> getCoordinateBounds(int index); @Override Extent<Double> getCoordinateExtent(); @Override int findIndexOf(Double position); @Override int findIndexOfUnconstrained(Double position); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testGetCoordinateBounds() { for (int i = 0; i < LONGSIZE; i++) { Extent<Double> bound = longitudeAxis.getCoordinateBounds(i); Extent<Double> expectedBound = Extents.newExtent(100.0 + (i - 0.5) * SPACE, 100.0 + (i + 0.5) * SPACE); assertEquals(expectedBound.getLow(), bound.getLow(), delta); assertEquals(expectedBound.getHigh(), bound.getHigh(), delta); } for (int i = 0; i < LATSIZE; i++) { Extent<Double> bound = latitudeAxis.getCoordinateBounds(i); Extent<Double> expectedBound = Extents.newExtent(20.0 + (i - 0.5) * SPACE, 20.0 + (i + 0.5) * SPACE); assertEquals(expectedBound.getLow(), bound.getLow(), delta); assertEquals(expectedBound.getHigh(), bound.getHigh(), delta); } }