I would like to mock some service that i pass to an actor. Then i want to verify that the mocked service is called as it should. Preferably i want to pass a stub, so i can simulate a service behavior for the sake of the test.
However i don't know how i can assert that the stub was called as it should in the main thread.
Is there a way to achieve this ?
I checked the
trait AsyncAssertions
But it does not seems to solve the issue.