} catch (RSSpectException r) {
assertEquals(r.getMessage(), "link SHOULD NOT be blank.");
}
try {
Link link = rssDoc.buildLink(" ");
assertNotNull(link);
fail("should not fail here.");
} catch (RSSpectException r) {
assertEquals(
r.getMessage(),
"link elements must start with a valid "
+ "Uniform Resource Identifer (URI) Schemes. "
+ "See http://www.iana.org. Yours started with: ' '");
}
try {
Link link = rssDoc.buildLink("abcScheme://testMe");
assertNotNull(link);
fail("should not fail here.");
} catch (RSSpectException r) {
assertEquals(
r.getMessage(),