public static void clean(
            Object func, ExecutionConfig.ClosureCleanerLevel level, boolean checkSerializable) {
        clean(func, level, checkSerializable, Collections.newSetFromMap(new IdentityHashMap<>()));
    }
@Test
    void testCleanObject() {
        assertThatExceptionOfType(InvalidProgramException.class)
                .isThrownBy(
                        () -> {
                            ClosureCleaner.clean(
                                    new Object(),
                                    ExecutionConfig.ClosureCleanerLevel.RECURSIVE,
                                    true);
                        });
    }