impl.write(wb,0);
impl.write(wb,Long.MAX_VALUE);
if (negative) impl.write(wb,-Long.MAX_VALUE);
rb = wb.getStaticBuffer().asReadBuffer();
if (backward) {
rb.movePosition(rb.length()-1);
if (negative) assertEquals(-Long.MAX_VALUE, impl.read(rb));
assertEquals(Long.MAX_VALUE, impl.read(rb));
assertEquals(0, impl.read(rb));
} else {
assertEquals(0, impl.read(rb));