@Test
    public void testTailSingleByteReads() throws IOException {
        final int count = 128;
        TailStream stream = new TailStream(generateStream(0, 2 * count), count);
        readStream(stream);
        assertEquals(generateText(count, count), new String(stream.getTail(), UTF_8),
                "Wrong buffer");
    }
Tests the content of the tail buffer if only single bytes were read.
tika-core/src/test/java/org/apache/tika/io/TailStreamTest.java