if (ent
.getId()
.getAtomUri()
.equals(
"http://colorfulsoftware.localhost/colorfulsoftware/projects/atomsphere/atom.xml#About")) {
Author auth = ent.getAuthor("Bill Brown");
assertNotNull(ent.getAttribute("xmlns"));
assertNotNull(auth);
assertNotNull(auth.getAttribute("local:testAttr"));
Attribute attr1 = auth.getAttribute("local:testAttr");
assertFalse(attr1.equals(auth.getAttribute("local:blank")));
assertNull(auth.getAttribute("local:blank"));
assertNotNull(auth.getExtension("test:test"));
assertNull(auth.getExtension("local:bunky"));
assertNull(ent.getAuthor("some other dude"));
assertNotNull(ent.getContributor("Bill Brown"));
assertNull(ent.getContributor("some other dude"));
assertNotNull(ent.getCategory("science"));
assertNull(ent.getCategory("nothing"));
assertNotNull(ent.getLink("alternate"));
assertNull(ent.getLink("http://www.fakeness.net"));
assertNotNull(ent.getExtension("local:element"));
assertNull(ent.getExtension("local:notthere"));
assertNotNull(ent.getPublished().getAttribute("xmlns"));
assertNotNull(ent.getPublished().getDateTime());
assertNull(ent.getSummary().getAttribute("sayWhat"));
Contributor cont = ent.getContributor("Bill Brown");
assertNotNull(cont);
assertNotNull(cont.getExtension("test:test"));
assertNotNull(cont.getAttribute("local:testAttr"));
attr1 = cont.getAttribute("local:testAttr");
assertFalse(attr1.equals(auth.getAttribute("local:blank")));
assertNull(auth.getAttribute("local:blank"));
assertNotNull(auth.getExtension("test:test"));
assertNull(auth.getExtension("local:bunky"));
assertNull(ent.getAuthor("some other dude"));
assertNotNull(ent.getContributor("Bill Brown"));
assertNull(ent.getContributor("some other dude"));
assertNotNull(ent.getCategory("science"));
assertNull(ent.getCategory("nothing"));