@Test
    public void testCacheEldestEntry() throws IOException {
        LogWriterLRUCache cache = new LogWriterLRUCache(5, (float) 0.75);
        String d = "target/tmp/logarchive";
        FilesArchived archive = new FilesArchived(new File(d), "gzip");
        for (int i = 0; i < cache.maxEntries + 10; i++) {
            cache.put(i, new LogWriter(d+"/2018/12/31/17", 5, archive));
        }
        assertEquals(cache.size(), cache.maxEntries);
    }
Make sure that the file is rotated after N bytes
logserver/src/test/java/com/yahoo/logserver/handlers/archive/ArchiverHandlerTestCase.java