public class SupplyingCallableGeneratorWithComponentTest {
private GeneratorRepository repo;
@Mock private SourceOfRandomness random;
@Before public void beforeEach() {
repo = new GeneratorRepository(random)
.register(Arrays.<Generator<?>> asList(
new ZilchGenerator(),
new TestCallableGenerator(),
new BoxGenerator()));
when(random.nextInt(0, 2)).thenReturn(1);