private void checkDecode(byte[] data, long[] expectedResult, Codec codec)
throws IOException, Pack200Exception {
InputStream in = new ByteArrayInputStream(data);
int[] result = new PopulationCodec(codec, codec, codec).decodeInts(
expectedResult.length, in);
assertEquals(expectedResult.length, result.length);
for (int i = 0; i < expectedResult.length; i++) {
assertEquals(expectedResult[i], result[i]);
}