@Test public void non_url_type_request_returns_no_specimen() { Object result = this.urlBuilder.create(Integer.class, null); assertEquals(new NoSpecimen(), result); }
@Override public Object create(Object request, SpecimenContext context) { if (!request.equals(URL.class)) { return new NoSpecimen(); } try { return new URL("http: } catch (MalformedURLException e) { return new NoSpecimen(); } }
UrlBuilder implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(URL.class)) { return new NoSpecimen(); } try { return new URL("http: } catch (MalformedURLException e) { return new NoSpecimen(); } } }
UrlBuilder implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(URL.class)) { return new NoSpecimen(); } try { return new URL("http: } catch (MalformedURLException e) { return new NoSpecimen(); } }  }
UrlBuilder implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(URL.class)) { return new NoSpecimen(); } try { return new URL("http: } catch (MalformedURLException e) { return new NoSpecimen(); } }  @Override Object create(Object request, SpecimenContext context); }
UrlBuilder implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(URL.class)) { return new NoSpecimen(); } try { return new URL("http: } catch (MalformedURLException e) { return new NoSpecimen(); } }  @Override Object create(Object request, SpecimenContext context);  }