### Question:
FiniteGenerator extends AbstractGenerator<T> { @Override public boolean equals(Object other) { return EqualsBuilder.reflectionEquals(this, other, excludedFields); } FiniteGenerator(Iterable<? extends T> iterable); @Override boolean hasNext(); @Override T next(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void shouldNotBeEqualIfSuppliedIterablesAreDifferent() throws Exception { Generator<Integer> firstGenerator = new FiniteGenerator<Integer>(iterableWith(1, 2, 3)); Generator<Integer> secondGenerator = new FiniteGenerator<Integer>(iterableWith(4, 5, 6)); boolean equal = firstGenerator.equals(secondGenerator); assertThat(equal, is(false)); }