### Question:
CallbackHandlerService { @Async protected CallbackResult handleCallback(String method, Object message, String messageEventName, String messageVariable, String correlationVariable, String correlationValue, String logMarker) { return handleCallback(method, message, messageEventName, messageVariable, correlationVariable, correlationValue, logMarker, null); } @Autowired  CallbackHandlerService(RuntimeService runtimeService);  static final long DEFAULT_TIMEOUT_SECONDS; static final long FAST_POLL_DUR_SECONDS; static final long FAST_POLL_INT_MS; static final long SLOW_POLL_INT_MS; }### Answer:
@Test public void callbackSuccessful() { mockRuntimeService(new ArrayList<>(Arrays.asList(new ExecutionEntity()))); CallbackResult callbackResult = testedObject.handleCallback(METHOD_NAME, MESSAGE, EVENT_NAME, MESSAGE_VARIABLE, CORRELATION_VARIABLE, CORRELATION_VALUE, LOG_MARKER, new HashMap<>()); assertThat(callbackResult).isExactlyInstanceOf(CallbackSuccess.class); }
@Test public void callbackNotSuccessful_noWaitingProcesses() { mockRuntimeService(Collections.emptyList()); CallbackResult callbackResult = testedObject.handleCallback(METHOD_NAME, MESSAGE, EVENT_NAME, MESSAGE_VARIABLE, CORRELATION_VARIABLE, CORRELATION_VALUE, LOG_MARKER, new HashMap<>()); assertThat(callbackResult).isExactlyInstanceOf(CallbackError.class); }