@Test
    public void testGridSamplePoint() {
        boolean flag = true;
        Point candidate;
        int x;
        int y;
        int width = testGrid.getWidth();
        int height = testGrid.getHeight();
        int row;
        int col;
        int rows = testGrid.getRows();
        int cols = testGrid.getCols();
        for (int i = 0; i < TEST_ITERS; i++) {
            candidate = testGrid.samplePoint();
            x = candidate.getX();
            y = candidate.getY();
            if (x < 0 || x >= width || y < 0 || y >= height)
                flag = false;
            col = testGrid.getColFromX(x);
            row = testGrid.getRowFromY(y);
            if (row < 0 || row >= rows || col < 0 || col >= cols) {
                System.err.println(row + "," + col + " " + rows + "," + cols);
                flag = false;
            }
        }
        assertTrue(flag);
    }