@Override
    public void clear() {
        data = null;
        size = 0;
        pos = 0;
        mark = 0;
        if (charBuffer != null && charBuffer.length > UTF_BUFFER_SIZE * 8) {
            charBuffer = new char[UTF_BUFFER_SIZE * 8];
        }
        version = UNKNOWN;
        wanProtocolVersion = UNKNOWN;
    }
@Test
    public void testClear() {
        in.clear();
        assertNull(in.data);
        assertEquals(0, in.size);
        assertEquals(0, in.pos);
        assertEquals(0, in.mark);
    }