@Test
public void testEarthRadiusIfMissingFromGridMapping() throws IOException {

    FeatureDataset fd = FeatureDatasetFactoryManager.open(
            FeatureType.ANY,
            "src/test/resources/crs/ACFclimBasins.ncml",
            null, 
            new Formatter(System.err));
    if (fd != null && fd instanceof GridDataset) {
        
        GridDataset gd = (GridDataset)fd;
        
        GridDatatype gdt = gd.findGridDatatype("xppt");
        assertNotNull(gdt);
        
        GridCoordSystem gcs = gdt.getCoordinateSystem();
        assertNotNull(gcs);
        
        CoordinateReferenceSystem crs = CRSUtility.getCRSFromGridCoordSystem(gcs);
        assertNotNull(crs);
        
        // verify prior issue resolution, that ellipsoid parameters of expected values
        assertTrue(crs instanceof ProjectedCRS);
        ProjectedCRS pcrs = (ProjectedCRS)crs;
        assertEquals(6371229.0, pcrs.getDatum().getEllipsoid().getSemiMajorAxis(), 0);
        assertEquals(SI.METER, pcrs.getDatum().getEllipsoid().getAxisUnit());
        
    } else {
        fail("Unable to open test dataset.");
    }
}