### Question:
UriPropertyConverter extends AbstractPropertyConverter { @Override public Object convert(String value, Context context) throws IllegalArgumentException { return URI.create(value); }  @Override boolean supports(Class<?> type); @Override Object convert(String value, Context context);  }### Answer:
@Test public void testUrl() throws Exception { URI uri = new URI("someUri"); assertThat((URI) converter.convert(uri.toString(), null), is(equalTo(uri))); }