@Override
  public Object next() {
    if (_numberOfValuesPerEntry == 1) {
      return getNextBooleanAsInteger();
    }
    return MultiValueGeneratorHelper
        .generateMultiValueEntries(_numberOfValuesPerEntry, _random, this::getNextBooleanAsInteger);
  }
@Test
  public void testNext() {
    Random random = mock(Random.class);
    when(random.nextBoolean()).thenReturn(false, true, false, false, true, true, false, true, false, true);

    // long generator
    BooleanGenerator generator = new BooleanGenerator(1.0, random);
    int[] expectedValues = { //
        0, 1, 0, 0, 1, //
        1, 0, 1, 0, 1
    };
    for (int expected : expectedValues) {
      assertEquals(generator.next(), expected);
    }
  }