### Question:
FailoverUriPool { public void addAll(List<URI> additions) { if (additions == null || additions.isEmpty()) { return; } synchronized (uris) { for (URI uri : additions) { add(uri); } } } FailoverUriPool();  FailoverUriPool(List<URI> uris, Map<String, String> nestedOptions); int size(); boolean isEmpty(); URI getNext(); void connected(); boolean isRandomize(); void setRandomize(boolean random); void add(URI uri); void addAll(List<URI> additions); void addFirst(URI uri); boolean remove(URI uri); void removeAll(); void replaceAll(List<URI> replacements); List<URI> getList(); Map<String, String> getNestedOptions(); @Override String toString(); static final boolean DEFAULT_RANDOMIZE_ENABLED; }### Answer:
@Test public void testAddAll() throws URISyntaxException { FailoverUriPool pool = new FailoverUriPool(null, null); pool.setRandomize(false); assertEquals(0, pool.size()); assertFalse(uris.isEmpty()); pool.addAll(uris); assertEquals(uris.size(), pool.size()); }