FeedImpl implements Feed { public void addLink(Link link) { if (links == null) links = new ArrayList<Link>(); links.add(link); } FeedImpl(Type type, String uri, Content title, Content description, String link); Type getType(); String getLink(); void setLink(String link); void addAuthor(Person author); void addContributor(Person contributor); void addEntry(FeedEntry entry); void addLink(Link link); void addModule(FeedExtension module); List<Person> getAuthors(); List<Category> getCategories(); List<Person> getContributors(); String getCopyright(); Content getDescription(); String getEncoding(); List<FeedEntry> getEntries(); Image getImage(); String getLanguage(); List<Link> getLinks(); FeedExtension getModule(String uri); List<FeedExtension> getModules(); Date getPublishedDate(); Date getUpdatedDate(); Content getTitle(); String getUri(); void setAuthors(List<Person> authors); void setCategories(List<Category> categories); void setContributors(List<Person> contributors); void setCopyright(String copyright); void setDescription(String description); void setDescription(Content description); void setEncoding(String encoding); void setEntries(List<FeedEntry> entries); void setImage(Image image); void setLanguage(String language); void setLinks(List<Link> links); void setModules(List<FeedExtension> modules); void setPublishedDate(Date publishedDate); void setUpdatedDate(Date updatedDate); void setTitle(String title); void setTitle(Content title); void setUri(String uri);  }
@Test public void addLink() { instance.addLink(null); Assert.assertNotNull(instance.getLink()); }