CircularSupplier implements Serializable { public static <T> CircularSupplier<T> create(Iterable<T> iterable) { return new CircularSupplier<T>(ImmutableList.copyOf(iterable)); } private  CircularSupplier(Iterable<T> iterable); static CircularSupplier<T> create(Iterable<T> iterable); static CircularSupplier<T> create(T... instances); T pop(); T peek(); boolean exceeded(); int size(); @Override String toString();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void shouldThrowExceptionWhenEmptyIterablePassed() throws Exception { CircularSupplier.create(ImmutableList.<Object>of()); }
@Test(expectedExceptions = IllegalArgumentException.class) public void shouldThrowExceptionWhenEmptyVarargPassed() throws Exception { CircularSupplier.create(); }