@Override
    public Long next(Object ignored) {
        if (!limitedDomain) {
            return next0();
        }
        return domain
            .stream()
            .skip(random.nextInt(domain.size()))
            .findFirst()
            .orElseThrow(() -> new RuntimeException("Should never happen"));
    }
@Test
    public void testFixedInt() {
        final IntGenerator.Builder builder = new IntGenerator.Builder();
        builder.setMin(1L);
        builder.setMax(1L);
        final IntGenerator generator = builder.build();
        for (int i = 0; i < 100; i++) {
            assertEquals(1, generator.next(null).intValue());
        }
    }