public boolean isSavepoint() {
        return checkpointType.isSavepoint();
    }
@Test
    void testIsSavepoint() throws Exception {
        {
            CheckpointProperties props =
                    CheckpointProperties.forCheckpoint(CheckpointRetentionPolicy.RETAIN_ON_FAILURE);
            assertThat(props.isSavepoint()).isFalse();
        }

        {
            CheckpointProperties props =
                    CheckpointProperties.forCheckpoint(
                            CheckpointRetentionPolicy.RETAIN_ON_CANCELLATION);
            assertThat(props.isSavepoint()).isFalse();
        }

        {
            CheckpointProperties props =
                    CheckpointProperties.forSavepoint(true, SavepointFormatType.CANONICAL);
            assertThat(props.isSavepoint()).isTrue();

            CheckpointProperties deserializedCheckpointProperties =
                    InstantiationUtil.deserializeObject(
                            InstantiationUtil.serializeObject(props), getClass().getClassLoader());
            assertThat(deserializedCheckpointProperties.isSavepoint()).isTrue();
        }
    }