@Override
    public final void writeBoolean(final boolean v) throws IOException {
        write(v ? 1 : 0);
    }
@Test
    public void testWriteBooleanForPositionV() throws Exception {
        out.writeBoolean(0, true);
        out.writeBoolean(1, false);

        assertEquals(1, out.buffer[0]);
        assertEquals(0, out.buffer[1]);
    }