// cover negative numbers;
BytesRef bytes = new BytesRef(5);
IntEncoder enc = new VInt8IntEncoder();
IntsRef values = new IntsRef(1);
values.ints[values.length++] = -1;
enc.encode(values, bytes);
IntDecoder dec = enc.createMatchingDecoder();
values.length = 0;
dec.decode(bytes, values);
assertEquals(1, values.length);