@Override
    public final void restore() throws Exception {
        restoreInternal();
    }
@Test
    void testSubTaskInitializationMetrics() throws Exception {
        StreamTaskMailboxTestHarnessBuilder<Integer> builder =
                new StreamTaskMailboxTestHarnessBuilder<>(
                                OneInputStreamTask::new, BasicTypeInfo.INT_TYPE_INFO)
                        .addInput(BasicTypeInfo.INT_TYPE_INFO)
                        .setupOutputForSingletonOperatorChain(
                                new TestBoundedOneInputStreamOperator());

        try (StreamTaskMailboxTestHarness<Integer> harness = builder.buildUnrestored()) {
            harness.streamTask.restore();

            assertThat(harness.getTaskStateManager().getReportedInitializationMetrics())
                    .isPresent();
        }
    }