@Test
public void testGetSampleBoolean() throws Exception {

    final boolean[] data = {false, true, true, true, true, false, true, true};
    final Array array = Array.factory(data);
    final Grid grid = new ArrayGrid(GridDef.createGlobal(90), array, 19, 1.0, 0.0);
    assertTrue(grid.getSampleBoolean(1, 0));
    assertTrue(grid.getSampleBoolean(3, 1));
    assertFalse(grid.getSampleBoolean(0, 0));
    assertFalse(grid.getSampleBoolean(1, 1));
}