### Question:
UuidGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(UUID.class)) { return new NoSpecimen(); } return UUID.randomUUID(); }  @Override Object create(Object request, SpecimenContext context);  }### Answer:
@Test public void non_uuid_type_request_returns_no_specimen() { Object result = this.uuidGenerator.create(Integer.class, null); assertEquals(new NoSpecimen(), result); }
@Test public void uuid_type_request_returns_uuid_instance() { Object result = this.uuidGenerator.create(UUID.class, null); assertTrue(result instanceof UUID); }