@Test
    public void testAllDelegators() throws IOException {
        MarkerReader m = new MarkerReader();
        NamedReader r = new NamedReader("nalle", m);
        r.read(CharBuffer.allocate(5000));
        assertEquals(MarkerReader.READ_CHAR_BUFFER, m.lastMethodHit);
        r.read();
        assertEquals(MarkerReader.READ, m.lastMethodHit);
        r.read(new char[5]);
        assertEquals(MarkerReader.READ_CHAR, m.lastMethodHit);
        r.read(new char[5], 0, 5);
        assertEquals(MarkerReader.READ_CHAR_INT_INT, m.lastMethodHit);
        r.skip(5L);
        assertEquals(MarkerReader.SKIP_LONG, m.lastMethodHit);
        r.ready();
        assertEquals(MarkerReader.READY, m.lastMethodHit);
        r.markSupported();
        assertEquals(MarkerReader.MARK_SUPPORTED, m.lastMethodHit);
        r.mark(5);
        assertEquals(MarkerReader.MARK_INT, m.lastMethodHit);
        r.reset();
        assertEquals(MarkerReader.RESET, m.lastMethodHit);
        r.close();
        assertEquals(MarkerReader.CLOSE, m.lastMethodHit);
    }
Tests all method of NamedReader.

@author bratseth
@author Steinar Knutsen
vespajlib/src/test/java/com/yahoo/io/reader/NamedReaderTestCase.java