Collection extends GenericXMLEncodable implements XMLEncodable, Iterable<Link>, Cloneable { public int size() { return _contents.size(); } 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 testSize() { Log.info(Log.FAC_TEST, "Starting testSize"); Collection cd = new Collection(); for (int i=0; i < lrs.length; ++i) { cd.add(lrs[i]); } Assert.assertTrue(cd.size() == lrs.length); Log.info(Log.FAC_TEST, "Completed testSize"); }