InformationParser extends SingleParser<T> { protected void check(Information information, T type) { var url = information.url(); if (!url.isEmpty() && !URL.matcher(url).matches()) { environment.error(type, format(url, "is not a valid URL")); } } InformationParser(Environment<T> environment);   }
@Test void check() { parser.check(InvalidURL.class.getAnnotation(Information.class), Object.class); verify(environment).error(Object.class, "\"htt: }