Site implements PDBRecord, Serializable, Comparable<Site> { public List<Group> getGroups() { return groups; } Site();  Site(String siteID, List<Group> groups); @Override String toString(); String toPDB(); void toPDB(StringBuffer buf); void remark800toPDB(StringBuffer stringBuffer); String remark800toPDB(); void setSiteID(String siteID); String getSiteID(); List<Group> getGroups(); void setGroups(List<Group> residues); String getDescription(); void setDescription(String description); String getEvCode(); void setEvCode(String evCode); @Override boolean equals(Object obj); @Override int hashCode(); int compareTo(Site other);  }
@Test public void testGetGroups() { List<Group> expResult = bindingSiteGroups; List<Group> result = bindingSite.getGroups(); assertEquals(expResult, result); }
@Test public void testGroup() { List<Group> result = bindingSite.getGroups(); Group arg221 = result.get(0); ResidueNumber testResNum = new ResidueNumber("H", 221, 'A'); assertEquals(testResNum, arg221.getResidueNumber()); assertEquals("H", arg221.getChainId()); Group hoh403 = null; for (Group group : result) { if (group.getResidueNumber().getSeqNum() == 403) { hoh403 = group; } } ResidueNumber testResNum2 = new ResidueNumber("H", 403, ' '); assertEquals(testResNum2, hoh403.getResidueNumber()); assertEquals("H", hoh403.getChainId()); }