byte[] bandEncoded = new byte[bytes1.length + bytes2.length];
System.arraycopy(bytes1, 0, bandEncoded, 0, bytes1.length);
System.arraycopy(bytes2, 0, bandEncoded, bytes1.length, bytes2.length);
RunCodec runCodec = new RunCodec(5, Codec.DELTA5, new PopulationCodec(
Codec.UNSIGNED5, Codec.BYTE1, Codec.UNSIGNED5));
int[] bandDecoded = runCodec.decodeInts(band.length,
new ByteArrayInputStream(bandEncoded));
assertEquals(band.length, bandDecoded.length);
for (int i = 0; i < band.length; i++) {
assertEquals(band[i], bandDecoded[i]);
}