@Test
public void testGetSampleInt() throws Exception {

    final int[] data = {0, 1, 2, 3, 4, 5, 6, 7};
    final Array array = Array.factory(data);
    final Grid grid = new ArrayGrid(GridDef.createGlobal(90), array, 19, 1.0, 0.0);
    assertEquals(1, grid.getSampleInt(1, 0));
    assertEquals(5, grid.getSampleInt(1, 1));
}