8081828384858687
} assertEquals("Different amount of messages received by 1", 2, messagesReceivedBy1.get()); assertEquals("Different amount of messages received by 2", 2, messagesReceivedBy2.get()); notificationListener1.stop(); notificationListener2.stop(); } }