@Test(expected = IllegalStateException.class) public void test_nextHost_whenHostsListIsEmpty() throws Exception { new HostRotator().nextHost(); }
public String nextHost() { validateCanRotate(); incrementHostIndex(); return hosts.get(hostIndex); }
HostRotator { public String nextHost() { validateCanRotate(); incrementHostIndex(); return hosts.get(hostIndex); } }
HostRotator { public String nextHost() { validateCanRotate(); incrementHostIndex(); return hosts.get(hostIndex); }  }
HostRotator { public String nextHost() { validateCanRotate(); incrementHostIndex(); return hosts.get(hostIndex); }  void addAll(final Collection<? extends String> hosts); String nextHost(); }
HostRotator { public String nextHost() { validateCanRotate(); incrementHostIndex(); return hosts.get(hostIndex); }  void addAll(final Collection<? extends String> hosts); String nextHost();  }