public Set<Address> getAddresses() {
        Set<Address> addresses = new HashSet<>(members.size());
        for (MemberInfo member : members) {
            addresses.add(member.getAddress());
        }
        return addresses;
    }
@Test
    public void getAddresses() {
        MemberImpl[] members = MemberMapTest.newMembers(3);
        MembersView view = MembersView.createNew(1, Arrays.asList(members));

        Set<Address> addresses = view.getAddresses();
        assertEquals(members.length, addresses.size());

        for (MemberImpl member : members) {
            assertTrue(addresses.contains(member.getAddress()));
        }
    }