public Path readyPath() { return readyPath; }
@Test
    public void testSpoolingManyEntriesPerFile() throws IOException {
        Path spoolDir = tempDir.resolve("spool");

        Spooler spooler = createSpooler(spoolDir, 2);

        TestLogger logger = new TestLogger(spooler);
        assertTrue(sendEntry(logger, "Yo entry"));
        assertTrue(sendEntry(logger, "Yo entry 2"));

        Path readyPath = spooler.readyPath();
        Path readyFile1 = readyPath.resolve(spooler.fileNameBase.get() + "-0");
        waitUntilFileExists(readyFile1);

        // Check content after being moved to ready path
        assertContent(readyFile1, "Yo entry");

        // Process files (read, transport files)
        logger.manualRun();
        assertEquals(2, logger.entriesSent());

        // No files in processing or ready, 1 file in successes
        assertProcessedFiles(spooler, 0);
        assertReadyFiles(spooler, 0);
        assertSuccessFiles(spooler, 1);
        assertFailureFiles(spooler, 0);

        // Write 1 entry and advance time, so that file will be processed even if
        // maxEntriesPerFile is 2 and there is only 1 entry in file
        assertTrue(sendEntry(logger, "Yo entry 3"));
        clock.advance(Duration.ofMinutes(1));
        logger.manualRun();
        assertEquals(3, logger.entriesSent());
        assertSuccessFiles(spooler, 2);
    }