client.registerDatabusStreamListener(listener2 , null, "S1");
int consumersNum = safeListSize(client.getRelayGroupStreamConsumers().get(ls1)) +
safeListSize(client.getRelayGroupStreamConsumers().get(ls2));
assertEquals("expect two consumers in (S1,S2) or (S1,S3)", 2, consumersNum);
DatabusStreamConsumer listener3 = new LoggingConsumer(clientConfig.getLoggingListener());
client.registerDatabusStreamListener(listener3, null, "S5");
assertEquals("expect one consumer in (S3,S4,S5)", 1,
safeListSize(client.getRelayGroupStreamConsumers().get(ls3)));