*/
public void test(TestHarness harness)
{
// check that array updates pass through
short[][] data = new short[][] {{1, 2}};
DataBufferShort b = new DataBufferShort(data, 2);
short[][] banks = b.getBankData();
harness.check(Arrays.equals(b.getBankData(), data));
data[0][0] = 3;
harness.check(banks[0][0] == 3);
// test where supplied array is bigger than 'size'
data = new short[][] {{1, 2, 3}};
b = new DataBufferShort(data, 2);
banks = b.getBankData();
harness.check(Arrays.equals(b.getBankData(), data));
// test where offsets are specified
data = new short[][] {{1, 2, 3}, {4, 5, 6, 7}};
b = new DataBufferShort(data, 2, new int[] {0, 1});
banks = b.getBankData();
harness.check(Arrays.equals(b.getBankData(), data));
// check that a single bank buffer returns a valid array
DataBufferShort b2 = new DataBufferShort(new short[] {1, 2}, 2);
banks = b2.getBankData();
harness.check(banks.length == 1);
harness.check(banks[0][0] == 1);
harness.check(banks[0][1] == 2);
// check that a multi bank buffer returns a valid array
DataBufferShort b3 = new DataBufferShort(new short[][] {{1}, {2}}, 1);
banks = b3.getBankData();
harness.check(banks.length == 2);
harness.check(banks[0][0] == 1);
harness.check(banks[1][0] == 2);
}