encodeDecodeWithAssert(values);
}
private void encodeDecodeWithAssert(int... values) throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
BitOutput bitOutput = new BitOutputImpl(bos);
ArithEncoder encoder = new ArithEncoder(encodeModel);
ArithCodeOutputStream output = new ArithCodeOutputStream(encoder, bitOutput);
for(int value: values) {
output.write(value);