### Question:
Collector { @SafeVarargs public final Collector<S> collect(S... elements) { this.base.addAll(Arrays.asList(elements)); return this; } private  Collector(); @SafeVarargs final Collector<S> collect(S... elements); Collector<S> collect(Collection<? extends S> elements); Collector<S> collect(Iterator<? extends S> elements); Collector<S> collect(Iterable<? extends S> elements); List<S> asList(); Set<S> asSet(); static Collector<T> newCollector();  }### Answer:
@Test public void testCollect$enum$different() throws Exception { sut.collect(valueArrayDifferent); verifyDifferent(sut.asSet(), sut.asList()); }
@Test public void testCollect$list$different() throws Exception { sut.collect(valueListDifferent); verifyDifferent(sut.asSet(), sut.asList()); }
@Test public void testCollect$iterable$different() throws Exception { sut.collect( new Iterable<String>(){ @Override public Iterator<String> iterator() { return valueListDifferent.iterator(); } } ); verifyDifferent(sut.asSet(), sut.asList()); }
@Test public void testCollect$enum$repeated() throws Exception { sut.collect(valueArrayRepeated); verifyRepeated(sut.asSet(), sut.asList()); }
@Test public void testCollect$list$repeated() throws Exception { sut.collect(valueListRepeated); verifyRepeated(sut.asSet(), sut.asList()); }
@Test public void testCollect$iterable$repeated() throws Exception { sut.collect( new Iterable<String>(){ @Override public Iterator<String> iterator() { return valueListRepeated.iterator(); } } ); verifyRepeated(sut.asSet(), sut.asList()); }