Bond extends ElectronContainer implements IBond, Serializable, Cloneable { public Bond() { this(null, null, null, IBond.Stereo.NONE); atomCount = 0; } Bond();  Bond(IAtom atom1, IAtom atom2);  Bond(IAtom atom1, IAtom atom2, Order order);  Bond(IAtom[] atoms);  Bond(IAtom[] atoms, Order order);  Bond(IAtom atom1, IAtom atom2, Order order, IBond.Stereo stereo); @Override Iterable<IAtom> atoms(); @Override int getIndex(); @Override IAtomContainer getContainer(); @Override void setAtoms(IAtom[] atoms); @Override int getAtomCount(); @Override IAtom getAtom(int position); IAtom getBegin(); IAtom getEnd(); @Override IAtom getOther(IAtom atom); @Override IAtom getConnectedAtom(IAtom atom); @Override IAtom[] getConnectedAtoms(IAtom atom); @Override boolean contains(IAtom atom); @Override void setAtom(IAtom atom, int position); @Override Order getOrder(); @Override void setOrder(Order order); @Override IBond.Stereo getStereo(); @Override void setStereo(IBond.Stereo stereo); IBond.Display getDisplay(); void setDisplay(IBond.Display display); @Override Point2d get2DCenter(); @Override Point3d get3DCenter(); @Override boolean compare(Object object); @Override boolean isConnectedTo(IBond bond); @Override boolean isAromatic(); @Override void setIsAromatic(boolean arom); @Override boolean isInRing(); @Override void setIsInRing(boolean ring); @Override IBond clone(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testBond() { IBond bond = new Bond(); Assert.assertEquals(0, bond.getAtomCount()); Assert.assertNull(bond.getBegin()); Assert.assertNull(bond.getEnd()); Assert.assertNull(bond.getOrder()); Assert.assertEquals(IBond.Stereo.NONE, bond.getStereo()); }