IsotopePattern { public void setMonoIsotope(IsotopeContainer isoContainer) { if (!isotopeCList.contains(isoContainer)) isotopeCList.add(isoContainer); monoIsotopePosition = isotopeCList.indexOf(isoContainer); } 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 testSetMonoIsotope_IsotopeContainer() { IsotopePattern isoP = new IsotopePattern(); isoP.setMonoIsotope(new IsotopeContainer()); Assert.assertNotNull(isoP); }