public boolean getUnalignedCheckpoint() {
        return unalignedCheckpoint;
    }
@Test
    void testUnalignedCheckpointType() {
        CheckpointMetricsBuilder metricsBuilder = new CheckpointMetricsBuilder();
        metricsBuilder.setBytesProcessedDuringAlignment(0L);
        metricsBuilder.setAlignmentDurationNanos(0L);
        metricsBuilder.setBytesPersistedOfThisCheckpoint(0L);
        metricsBuilder.setTotalBytesPersisted(0L);

        // The checkpoint shouldn't be unaligned checkpoint when builder doesn't set
        // bytesPersistedDuringAlignment
        assertThat(metricsBuilder.build().getUnalignedCheckpoint()).isFalse();
        assertThat(metricsBuilder.buildIncomplete().getUnalignedCheckpoint()).isFalse();

        assertUnalignedCheckpointType(metricsBuilder, 0L);
        assertUnalignedCheckpointType(metricsBuilder, 1L);
        assertUnalignedCheckpointType(metricsBuilder, 5L);
        assertUnalignedCheckpointType(metricsBuilder, 10L);
        assertUnalignedCheckpointType(metricsBuilder, 100L);
    }