@Test public void uuid_type_request_returns_uuid_instance() { Object result = this.uuidGenerator.create(UUID.class, null); assertTrue(result instanceof UUID); }
@Override public Object create(Object request, SpecimenContext context) { if (!request.equals(UUID.class)) { return new NoSpecimen(); } return UUID.randomUUID(); }
UuidGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(UUID.class)) { return new NoSpecimen(); } return UUID.randomUUID(); } }
UuidGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(UUID.class)) { return new NoSpecimen(); } return UUID.randomUUID(); }  }
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); }
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);  }