Collection extends GenericXMLEncodable implements XMLEncodable, Iterable<Link>, Cloneable { @Override public boolean validate() { return (null != contents()); } Collection();  Collection(java.util.Collection<Link> contents);  Collection(Link [] contents);  Collection(ArrayList<ContentName> nameContents);  Collection(String label, ArrayList<ContentName> nameContents); @SuppressWarnings("unchecked") Collection clone(); LinkedList<Link> contents(); Link get(int i); Link get(String label); void add(Link content); void add(ArrayList<Link> contents); void add(String label, ArrayList<ContentName> nameContents); void add(String label, ContentName target); Link remove(int i); boolean remove(Link content); void removeAll(); int size(); ArrayList<Link> find(Link target); ArrayList<Link> find(ContentName targetName); ArrayList<Link> find(String targetLabel); @Override void decode(XMLDecoder decoder); @Override void encode(XMLEncoder encoder); @Override boolean validate(); @Override long getElementLabel(); @Override int hashCode(); @Override boolean equals(Object obj); String toString(); Iterator<Link> iterator();  }
@Test public void testValidate() { Log.info(Log.FAC_TEST, "Starting testValidate"); Collection cd = new Collection(); Assert.assertTrue(cd.validate()); cd.add(lrs[0]); Assert.assertTrue(cd.validate()); cd.remove(0); Assert.assertTrue(cd.validate()); Log.info(Log.FAC_TEST, "Completed testValidate"); }
@Test public void testCollectionData() { Log.info(Log.FAC_TEST, "Starting testCollectionData"); Collection cd = new Collection(); Assert.assertNotNull(cd); Assert.assertTrue(cd.validate()); Log.info(Log.FAC_TEST, "Completed testCollectionData"); }