GridCellGeometry { public GridCoordSystem getGridCoordSystem() { return gridCoordSystem; } GridCellGeometry(GridCoordSystem gridCoordSystem); GridCoordSystem getGridCoordSystem(); CoordinateReferenceSystem getGridCRS(); int getCellCountX(); int getCellCountY(); int getCellCount(); Geometry getCellGeometry(int xIndex, int yIndex); final int calculateYXIndex(int xIndex, int yIndex);  }
@Test public void testGridCoordSystem() { assertEquals("The geometry gcs should match dataset's", gcg.getGridCoordSystem(), gcs); }