### Question:
Generators { public static <T> Generator<T> constantGenerator(T value) { return new ConstantGenerator<T>(value); } private  Generators(); static Generator<T> constantGenerator(T value); static Generator<T> finiteGenerator(Iterable<T> iterable); @ToDo(raisedBy = "Toby", date = "2012-03-25", message = "This needs to tee rather than using the same instance in the same way that toIterable would") static Generatable<T> toGeneratable(final Generator<T> generator);  }### Answer:
@Test public void shouldConstructAConstantGeneratorWithTheSpecifiedValue() throws Exception { Generator<Integer> expectedGenerator = new ConstantGenerator<Integer>(67463); Generator<Integer> actualGenerator = constantGenerator(67463); assertThat(actualGenerator, is(expectedGenerator)); }