@Override
    public Void execute(Context context) {
        KieSession ksession = ((RegistryContext) context).lookup(KieSession.class);
        Collection<?> objects = ksession.getObjects(new ConditionFilter(factToCheck));
        if (!objects.isEmpty()) {
            factToCheck.forEach(fact -> fact.getScenarioResult().setResult(true));
        } else {
            factToCheck.forEach(fact -> fact.getScenarioResult().getFactMappingValue().setExceptionMessage("There is no instance which satisfies the expected conditions"));
        }
        return null;
    }
@Test
    public void execute_setResultIsNotCalled() {
        when(kieSession.getObjects(any(ObjectFilter.class))).thenReturn(List.of());
        when(scenarioResult.getFactMappingValue()).thenReturn(factMappingValue);

        validateFactCommand.execute(registryContext);
        
        verify(scenarioResult, times(0)).setResult(anyBoolean());
    }