@Test(timeout = 90000)
public void testEventService() throws Exception {
TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(3);
HazelcastInstanceProxy h1 = (HazelcastInstanceProxy) factory.newHazelcastInstance();
HazelcastInstanceProxy h2 = (HazelcastInstanceProxy) factory.newHazelcastInstance();
HazelcastInstanceProxy h3 = (HazelcastInstanceProxy) factory.newHazelcastInstance();
CountDownLatch l1 = new CountDownLatch(1000);
CountDownLatch l2 = new CountDownLatch(1000);
CountDownLatch l3 = new CountDownLatch(1000);
ITopic t1 = h1.getTopic("foo");
ITopic t2 = h2.getTopic("foo");
ITopic t3 = h3.getTopic("foo");
t1.addMessageListener(createMessageListener(l1));
t2.addMessageListener(createMessageListener(l2));
t3.addMessageListener(createMessageListener(l3));
MemberImpl m1 = (MemberImpl) h1.getCluster().getLocalMember();
MemberImpl m2 = (MemberImpl) h2.getCluster().getLocalMember();
MemberImpl m3 = (MemberImpl) h3.getCluster().getLocalMember();
Address a1 = m1.getAddress();
Address a2 = m2.getAddress();
Address a3 = m3.getAddress();