@Test
public void testAddandRemoveHomepage() throws SimalRepositoryException, DuplicateURIException {
Set<IDocument> prePages = project1.getHomepages();
String uri = "http://www.foo.org/homepageTest";
IDocument page = SimalRepositoryFactory.getHomepageService().create(uri);
project1.addHomepage(page);
Set<IDocument> postPages = project1.getHomepages();
assertTrue("Failed to add a homepage to the project",
prePages.size() < postPages.size());
project1.removeHomepage(page);
postPages = project1.getHomepages();
assertTrue("Failed to remove a homepage from the project", prePages
.size() == postPages.size());
page.delete();
}