### Question:
EmailLocalPartGenerator implements Generator<String> { @Override public String next() { String localPart = generator.next(); if (localPart.contains("..") || localPart.startsWith(".") || localPart.endsWith(".")) { return next(); } return localPart; } EmailLocalPartGenerator(int length);  EmailLocalPartGenerator(Range<Integer> range); @Override String next();  }### Answer:
@Test public void noWrongDots(){ for (int i = 0; i < 10000; i++) { String localPart = generator.next().trim(); print(localPart); assertThat(localPart).doesNotContain(".."); assertThat(localPart.startsWith(".")).isFalse(); assertThat(localPart.endsWith(".")).isFalse(); } }