Orbit implements Iterable<Integer>, Cloneable { public void remove(int atomIndex) { this.atomIndices.remove(this.atomIndices.indexOf(atomIndex)); } Orbit(String label, int height); @Override Iterator<Integer> iterator(); @Override Object clone(); void sort(); int getHeight(); List<Integer> getAtomIndices(); void addAtom(int atomIndex); boolean hasLabel(String otherLabel); boolean isEmpty(); int getFirstAtom(); void remove(int atomIndex); String getLabel(); boolean contains(int atomIndex); @Override String toString();  }
@Test public void removeTest() { Assert.assertEquals(4, orbit.getAtomIndices().size()); orbit.remove(0); Assert.assertEquals(3, orbit.getAtomIndices().size()); }