CustomParameter { public boolean isUrl() { return RenderingUtils.isUrl(getValue()); } CustomParameter(final String key, final String value); String getKey(); String getValue(); boolean isUrl(); @Override String toString();  }
@Test public void isValidUrlTest() { CustomParameter customParameter = new CustomParameter("test", "http: assertThat(customParameter.isUrl(), is(true)); }
@Test public void isInvalidUrlTest() { CustomParameter customParameter = new CustomParameter("test", "test"); assertThat(customParameter.isUrl(), is(false)); }