### Question:
UriGenerator implements Generator<URI> { public URI next() { try { return URI.create(protocolGenerator.next() + domainGenerator.next() + "." + new String(suffixGenerator.next().getBytes("UTF-8"))); } catch (UnsupportedEncodingException e) { throw new RuntimeException("exception encoding URI", e); } }  URI next();  }### Answer:
@Test public void createUrls(){ Generator<URI> urlGenerator = RDG.uri(); for (int i = 0; i < 10000; i++) { URI url = urlGenerator.next(); print(url.toString()); if (!stringContainsWeirdChar(url)) { assertThat(pattern.matcher(url.toString()).matches()).isTrue(); } } }