@Test public void string_type_request_returns_string_as_uuid() { Object result = this.stringGenerator.create(String.class, null); assertNotNull(UUID.fromString((String) result)); }
@Override public Object create(Object request, SpecimenContext context) { if (!request.equals(String.class)) { return new NoSpecimen(); } return UUID.randomUUID().toString(); }
StringGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(String.class)) { return new NoSpecimen(); } return UUID.randomUUID().toString(); } }
StringGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(String.class)) { return new NoSpecimen(); } return UUID.randomUUID().toString(); }  }
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); }
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);  }