public void testRoundRobinLB_withMembers() {
RoundRobinLB roundRobinLB = new RoundRobinLB();
TestHazelcastInstanceFactory factory = new TestHazelcastInstanceFactory(1);
final HazelcastInstance server = factory.newHazelcastInstance();
Cluster cluster = server.getCluster();
ClientConfig clientConfig = new ClientConfig();
clientConfig.setLoadBalancer(roundRobinLB);
roundRobinLB.init(cluster, clientConfig);
Member member = cluster.getLocalMember();
Member nextMember = roundRobinLB.next();
assertEquals(member, nextMember);
}