@Test
public void testGetCells() throws Exception {

    CellGrid<MyCell> grid = createGrid(GridDef.createGlobal(5.0));
    List<MyCell> cells = grid.getCells();
    assertNotNull(cells);
    assertEquals(0, cells.size());
    grid.getCellSafe(0, 9);
    grid.getCellSafe(10, 2);
    grid.getCellSafe(12, 25);
    grid.getCellSafe(7, 3);
    cells = grid.getCells();
    assertNotNull(cells);
    assertEquals(4, cells.size());
    assertSame(grid.getCell(10, 2), cells.get(0));
    assertSame(grid.getCell(7, 3), cells.get(1));
    assertSame(grid.getCell(0, 9), cells.get(2));
    assertSame(grid.getCell(12, 25), cells.get(3));
}