@Override
    public final boolean readBoolean() throws EOFException {
        final int ch = read();
        if (ch < 0) {
            throw new EOFException();
        }
        return (ch != 0);
    }
@Test
    public void testReadBooleanPosition() throws Exception {
        boolean read1 = in.readBoolean(0);
        boolean read2 = in.readBoolean(1);
        assertFalse(read1);
        assertTrue(read2);
    }