### Question:
PeriodicResolver implements Supplier<List<URI>> { @Override public List<URI> get() { return endpoints; } private  PeriodicResolver(final String srvName,
                           final String domain,
                           final Resolver resolver,
                           final ScheduledExecutorService executorService); static PeriodicResolver create(final String srvName,
                                        final String domain,
                                        final ScheduledExecutorService executorService); @VisibleForTesting static PeriodicResolver create(final String srvName,
                                        final String domain,
                                        final Resolver resolver,
                                        final ScheduledExecutorService executorService); @Override List<URI> get();  }### Answer:
@Test public void testGet() { final URI uri = URI.create("https: when(resolver.resolve("foo", "bar")).thenReturn(ImmutableList.of(uri)); final PeriodicResolver sut = PeriodicResolver.create("foo", "bar", resolver, Executors.newSingleThreadScheduledExecutor()); assertThat(sut.get(), Matchers.contains(uri)); }