I have written a test that send several messages to actor in akka system. When test is finished akka system is shutdowned. The problem is that messages are processed anisochronous and system shutdown before they are processed.
Is there a way to tell akka system to wait untill all messages in mailbox will be processed by actors and then shutdown?