@Test
public void dumpOnlyCheckpointRecordBecausePageIdNotSet() throws Exception {

    diagnosticProcessor.dumpPageHistory(new PageHistoryDiagnoster.DiagnosticPageBuilder()
        .addAction(PRINT_TO_LOG)
        .addAction(PRINT_TO_FILE)
    );
    Path path = Paths.get(U.defaultWorkDirectory(), DEFAULT_TARGET_FOLDER);
    File dumpFile = path.toFile().listFiles((dir, name) -> name.endsWith(FILE_FORMAT))[0];
    List<String> records = Files.readAllLines(dumpFile.toPath());
    assertTrue(records.stream().allMatch(line -> line.contains("CheckpointRecord")));
}