### Question:
FlowableFacade { public void shutdownJobExecutor() { LOGGER.info(Messages.SHUTTING_DOWN_FLOWABLE_JOB_EXECUTOR); AsyncExecutor asyncExecutor = processEngine.getProcessEngineConfiguration() .getAsyncExecutor(); asyncExecutor.shutdown(); } @Inject  FlowableFacade(ProcessEngine processEngine); ProcessInstance startProcess(String processDefinitionKey, Map<String, Object> variables); String getProcessInstanceId(String executionId); String getCurrentTaskId(String executionId); ProcessInstance getProcessInstance(String processId); boolean hasDeadLetterJobs(String processId); List<String> getHistoricSubProcessIds(String correlationId); HistoricProcessInstance getHistoricProcessById(String processInstanceId); HistoricVariableInstance getHistoricVariableInstance(String processInstanceId, String variableName); List<String> getActiveHistoricSubProcessIds(String correlationId); void executeJob(String processInstanceId); void trigger(String executionId, Map<String, Object> variables); void deleteProcessInstance(String processInstanceId, String deleteReason); boolean isProcessInstanceAtReceiveTask(String processInstanceId); List<Execution> findExecutionsAtReceiveTask(String processInstanceId); List<Execution> getActiveProcessExecutions(String processInstanceId); void suspendProcessInstance(String processInstanceId); void shutdownJobExecutor(); boolean isJobExecutorActive(); ProcessEngine getProcessEngine(); List<ProcessInstance> findAllRunningProcessInstanceStartedBefore(Date startedBefore);  }### Answer:
@Test void testAsyncExecutorMethodsAreCalled() { flowableFacade.shutdownJobExecutor(); Mockito.verify(mockedAsyncExecutor, Mockito.times(1)) .shutdown(); }