StaticServerSet implements ServerSet { @Override public Set<InetSocketAddress> getServers() { return this.servers; } @Inject  StaticServerSet(@Assisted InetSocketAddress... servers); @Override void addChangeListener(ChangeListener listener); @Override void removeChangeListener(ChangeListener listener); @Override void close(); @Override Set<InetSocketAddress> getServers();  }
@Test public void testGetServers() throws IOException { InetSocketAddress server1 = new InetSocketAddress(80); InetSocketAddress server2 = new InetSocketAddress(8080); StaticServerSet set = new StaticServerSet(server1, server2); assertThat(set.getServers().contains(server1), is(true)); assertThat(set.getServers().contains(server2), is(true)); set.close(); }