### Question:
MQServiceTaskBehavior extends AbstractBpmnActivityBehavior implements TriggerableActivityBehavior { @Override public void trigger(DelegateExecution execution, String signalEvent, Object signalData) { leave(execution); } MQServiceTaskBehavior(IntegrationContextManager integrationContextManager,
                                 ApplicationEventPublisher eventPublisher,
                                 IntegrationContextBuilder integrationContextBuilder,
                                 RuntimeBundleInfoAppender runtimeBundleInfoAppender,
                                 DefaultServiceTaskBehavior defaultServiceTaskBehavior); @Override void execute(DelegateExecution execution); @Override void trigger(DelegateExecution execution,
                        String signalEvent,
                        Object signalData);  }### Answer:
@Test public void triggerShouldCallLeave() { DelegateExecution execution = mock(DelegateExecution.class); doNothing().when(behavior).leave(execution); behavior.trigger(execution, null, null); verify(behavior).leave(execution); }