GridCellGeometry { public int getCellCount() { return cellCount; } 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 testGeometryCellCount() { int cellCount = X_SIZE * Y_SIZE; assertEquals("The geometry should have equal cell count with dataset", gcg.getCellCount(), cellCount); }