UriValidator implements ValueListValidator { @Override public void validate(List<String> values) throws XDSMetaDataException { if (values.size() > 0) { String uri = getUri(values); metaDataAssert(uri != null, NULL_URI); metaDataAssert(!uri.isEmpty(), EMPTY_URI); try { new URI(uri); } catch (URISyntaxException eUri) { try { new URL(uri); } catch (MalformedURLException eUrl) { throw new XDSMetaDataException(INVALID_URI, uri); } } } }  @Override void validate(List<String> values);  }
@Test public void testValidateGoodCases() throws XDSMetaDataException { validator.validate(Arrays.asList("http: validator.validate(Arrays.asList("1|http: validator.validate(Arrays.asList("1|http: }