Unittest 'MessageBrokerTest' is refactored