public static void clean(
            Object func, ExecutionConfig.ClosureCleanerLevel level, boolean checkSerializable) {
        clean(func, level, checkSerializable, Collections.newSetFromMap(new IdentityHashMap<>()));
    }
@Test
    void testWriteReplaceRecursive() {
        WithWriteReplace writeReplace = new WithWriteReplace(new WithWriteReplace.Payload("text"));
        assertThat(writeReplace.getPayload().getRaw()).isEqualTo("text");
        ClosureCleaner.clean(writeReplace, ExecutionConfig.ClosureCleanerLevel.RECURSIVE, true);
    }