@Test
public void testMiddleOfBiggerGrid() throws IOException, InvalidRangeException {

    ncLocation = getResourceDir() + File.separator + "testCoverageTYXFourByFour.ncml";
    getFeatureCollection(ncLocation);
    LatLonRect llr = new LatLonRect(
            new LatLonPointImpl(41, -90),
            new LatLonPointImpl(42, -89));
    GridCoordSystem gcs = getGridCoordinateSystem();
    Range[] range = GridUtility.getXYRangesFromLatLonRect(llr, gcs);
    assertTrue("Range should be 4x4 since they are buffered", (range[0].length() == 4 && range[1].length() == 4));
}