IsotopePattern { public List<IsotopeContainer> getIsotopes() { return isotopeCList; } IsotopePattern(); void setMonoIsotope(IsotopeContainer isoContainer); void addIsotope(IsotopeContainer isoContainer); IsotopeContainer getMonoIsotope(); List<IsotopeContainer> getIsotopes(); IsotopeContainer getIsotope(int position); int getNumberOfIsotopes(); void setCharge(double charge); double getCharge(); @Override Object clone();  }
@Test public void testGetIsotopes() { IsotopePattern isoP = new IsotopePattern(); IsotopeContainer iso1 = new IsotopeContainer(); isoP.setMonoIsotope(iso1); IsotopeContainer iso2 = new IsotopeContainer(); isoP.addIsotope(iso2); Assert.assertEquals(iso1, isoP.getIsotopes().get(0)); Assert.assertEquals(iso2, isoP.getIsotopes().get(1)); }