Group implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Group other = (Group) obj; if (!Arrays.equals(formalChargeList, other.formalChargeList)) return false; if (!Arrays.equals(atomNameList, other.atomNameList)) return false; if (!Arrays.equals(bondAtomList, other.bondAtomList)) return false; if (!Arrays.equals(bondOrderList, other.bondOrderList)) return false; if (chemCompType == null) { if (other.chemCompType != null) return false; } else if (!chemCompType.equals(other.chemCompType)) return false; if (!Arrays.equals(elementList, other.elementList)) return false; if (groupName == null) { if (other.groupName != null) return false; } else if (!groupName.equals(other.groupName)) return false; if (singleLetterCode != other.singleLetterCode) return false; return true; }  @Override int hashCode(); @Override boolean equals(Object obj); String[] getAtomNameList(); void setAtomNameList(String[] inputAtomInfo); int[] getBondOrderList(); void setBondOrderList(int[] inputBondOrders); int[] getBondAtomList(); void setBondAtomList(int[] inputBondIndices); String getGroupName(); void setGroupName(String resName); int[] getFormalChargeList(); void setFormalChargeList(int[] inputAtomCharges); char getSingleLetterCode(); void setSingleLetterCode(char inputSingleLetterCode); String getChemCompType(); void setChemCompType(String groupType); String[] getElementList(); void setElementList(String[] elementList);  }
@Test public void testgroupEqualsItstelf() { assertTrue(groupOne.equals(groupOne)); }
@Test public void testgroupEquals() { assertTrue(groupOne.equals(groupTwo)); }
@Test public void testgroupNotEqualsNull() { assertFalse(groupOne.equals(null)); }
@Test public void testgroupNotEqulasOtherObj() { assertFalse(groupOne.equals(new ArrayList<Integer>())); }