### Question:
StringGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(String.class)) { return new NoSpecimen(); } return UUID.randomUUID().toString(); }  @Override Object create(Object request, SpecimenContext context);  }### Answer:
@Test public void non_string_type_request_returns_no_specimen() { Object result = this.stringGenerator.create(Integer.class, null); assertEquals(new NoSpecimen(), result); }
@Test public void string_type_request_returns_string_as_uuid() { Object result = this.stringGenerator.create(String.class, null); assertNotNull(UUID.fromString((String) result)); }