@Test
public void testGetSampleBoolean_outOfBounds() 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);
    try {
        grid.getSampleBoolean(4, 1);
        fail("ArrayIndexOutOfBoundsException expected");
    } catch (Exception e) {
    }
    try {
        grid.getSampleBoolean(0, 3);
        fail("ArrayIndexOutOfBoundsException expected");
    } catch (Exception e) {
    }
}