@Test
public void testEllipsoidParametersHaveCorrectOrderOfMagnitude() throws IOException {

    FeatureDataset fd = FeatureDatasetFactoryManager.open(
            FeatureType.ANY,
            "src/test/resources/crs/sleuth.2010.ncml",
            null, 
            new Formatter(System.err));
    if (fd != null && fd instanceof GridDataset) {
        GridDataset gd = (GridDataset)fd;
        List<GridDatatype> gdts = gd.getGrids();
        assertEquals(1, gdts.size());
        CoordinateReferenceSystem crs = CRSUtility.getCRSFromGridCoordSystem(gdts.get(0).getCoordinateSystem());
        
        // verify prior issue resolution, that ellipsoid parameters of expected values
        assertTrue(crs instanceof ProjectedCRS);
        ProjectedCRS pcrs = (ProjectedCRS)crs;
        assertEquals(6378137., pcrs.getDatum().getEllipsoid().getSemiMajorAxis(), 0);
        assertEquals(298.257222101, pcrs.getDatum().getEllipsoid().getInverseFlattening(), 1e-7);
        assertEquals(SI.METER, pcrs.getDatum().getEllipsoid().getAxisUnit());
    } else {
        fail("Unable to open test dataset.");
    }
}