To reproduce the a bug, the verification method invocation fails for spyk.
run ./gradlew test or run from IDE SomeTest
Expected behavior: test passed
Actual behavior:
[DefaultDispatcher-worker-1 @coroutine#3] INFO ChannelMessageProcessor - == Process method invoked with `test1`
[DefaultDispatcher-worker-1 @coroutine#3] INFO ChannelMessageProcessor - == Process method invoked with `test2`
[DefaultDispatcher-worker-1 @coroutine#3] INFO ChannelMessageProcessor - == Process method invoked with `test3`
Verification failed: call 1 of 1: ChannelMessageProcessor(#1).process$SpykInvocationCaptureFail(any(), any())) was not called.
Calls to same mock:
1) ChannelMessageProcessor(#1).addMessageToProcess(test1, continuation {})
2) ChannelMessageProcessor(#1).addMessageToProcess(test2, continuation {})
3) ChannelMessageProcessor(#1).addMessageToProcess(test3, continuation {})
although the method was invoked (see log messages).