PropertyValueParser { public URL parseURL(String s) { try { return new URL(s.trim()); } catch (MalformedURLException e) { log.warn("Unable to parse URL: " + s); return null; } }  Boolean parseBoolean(String s); Integer parseInteger(String s); Float parseFloat(String s); URL parseURL(String s); Enum<?> parseEnum(String s, Class<?> enumClass);  }
@Test public void parseUrl() throws URISyntaxException, MalformedURLException { assertEquals(new URL("http: assertNull(parser.parseURL("htwww.google.com")); }