@Override
    public FlinkPod decorateFlinkPod(FlinkPod flinkPod) {
        final Pod podWithMount = decoratePod(flinkPod.getPodWithoutMainContainer());
        final Container containerWithMount = decorateMainContainer(flinkPod.getMainContainer());

        return new FlinkPod.Builder(flinkPod)
                .withPod(podWithMount)
                .withMainContainer(containerWithMount)
                .build();
    }
@Test
    void testWhetherPodOrContainerIsDecorated() {
        final FlinkPod resultFlinkPod = mountSecretsDecorator.decorateFlinkPod(baseFlinkPod);

        assertThat(
                        VolumeTestUtils.podHasVolume(
                                baseFlinkPod.getPodWithoutMainContainer(), SECRET_NAME + "-volume"))
                .isFalse();
        assertThat(
                        VolumeTestUtils.podHasVolume(
                                resultFlinkPod.getPodWithoutMainContainer(),
                                SECRET_NAME + "-volume"))
                .isTrue();

        assertThat(
                        VolumeTestUtils.containerHasVolume(
                                baseFlinkPod.getMainContainer(),
                                SECRET_NAME + "-volume",
                                SECRET_MOUNT_PATH))
                .isFalse();
        assertThat(
                        VolumeTestUtils.containerHasVolume(
                                resultFlinkPod.getMainContainer(),
                                SECRET_NAME + "-volume",
                                SECRET_MOUNT_PATH))
                .isTrue();
    }