@Override
    public void close() {
        pos = 0;
        buffer = null;
    }
@Test
    public void testClose() {
        out.close();
        assertEquals(0, out.position());
        assertNull(out.buffer);
    }