### Question:
Iso3CountryGenerator implements Generator<String> { public String next() { String country; try { country = localeGenerator.next().getISO3Country(); } catch (MissingResourceException e) { return next(); } if (country.isEmpty()) { return next(); } return country; }  String next();  }### Answer:
@Test public void getIso3CountryCode(){ Generator<String> countryGenerator = RDG.iso3Country(); for (int i = 0; i < 1000; i++) { String country = countryGenerator.next(); print(country); assertThat(country).hasSize(3); } }