boolean valid(Flow flow, List<Condition> list, ConditionContext conditionContext) {
        return list
            .stream()
            .allMatch(condition -> {
                try {
                    return condition.test(conditionContext);
                } catch (Exception e) {
                    logException(flow, condition, conditionContext, e);

                    return false;
                }
            });
    }
@Test
    void valid() {
        Flow flow = TestsUtils.mockFlow();
        Execution execution = TestsUtils.mockExecution(flow, ImmutableMap.of());

        RunContext runContext = runContextFactory.of(flow, execution);
        ConditionContext conditionContext = conditionService.conditionContext(runContext, flow, execution);

        List<Condition> conditions = Arrays.asList(
            ExecutionFlowCondition.builder()
                .namespace(flow.getNamespace())
                .flowId(flow.getId())
                .build(),
            ExecutionNamespaceCondition.builder()
                .namespace(flow.getNamespace())
                .build()
        );


        boolean valid = conditionService.valid(flow, conditions, conditionContext);

        assertThat(valid, is(true));
    }