Isotope extends Element implements Serializable, IIsotope, Cloneable { @Override public Integer getMassNumber() { return this.massNumber; } Isotope(String elementSymbol);  Isotope(int atomicNumber, String elementSymbol, int massNumber, double exactMass, double abundance);  Isotope(int atomicNumber, String elementSymbol, double exactMass, double abundance);  Isotope(String elementSymbol, int massNumber);  Isotope(IElement element); @Override void setNaturalAbundance(Double naturalAbundance); @Override void setExactMass(Double exactMass); @Override Double getNaturalAbundance(); @Override Double getExactMass(); @Override Integer getMassNumber(); @Override void setMassNumber(Integer massNumber); @Override String toString(); @Override boolean compare(Object object); @Override Object clone(); public Double exactMass; public Double naturalAbundance; }
@Test public void testIsotope_String_int() { IIsotope i = new Isotope("C", 12); Assert.assertEquals(12, i.getMassNumber().intValue()); Assert.assertEquals("C", i.getSymbol()); }