### Question:
NameGenerator implements Sampler<Pair<String, String>> { public Pair<String, String> sample() throws Exception { return Pair.of(firstNameSampler.sample(), lastNameSampler.sample()); } NameGenerator(SeedFactory seedFactory); Pair<String, String> sample();  }### Answer:
@Test public void testBuild() throws Exception { SeedFactory factory = new SeedFactory(1234); NameGenerator sampler = new NameGenerator(factory); Pair<String, String> name = sampler.sample(); Assert.assertNotNull(name); Assert.assertNotNull(name.getLeft()); Assert.assertNotNull(name.getRight()); }