@Test
public void should_convert_string_to_URL() throws Exception {

    // given
    URL expectedUrl = new URI("http://www.arquillian.org").toURL();
    StateTypeConverter typeConverter = new StateTypeConverter();
    // when
    URL convertedUrl = typeConverter.convert("http://www.arquillian.org", URL.class);
    // then
    assertThat(convertedUrl).isEqualTo(expectedUrl);
}