### Question:
RoundRobinList { synchronized public T get() { if (iterator.hasNext()) { return iterator.next(); } else { iterator = elements.iterator(); return iterator.next(); } } RoundRobinList(Collection<T> elements); synchronized T get(); int size();  }### Answer:
@Test public void shouldReturnNextElement() { assertEquals("test1", fixture.get()); assertEquals("test2", fixture.get()); assertEquals("test1", fixture.get()); assertEquals("test2", fixture.get()); assertEquals("test1", fixture.get()); }