@Test
public void testCalculateIsotopesIodemethylidyne() {

    // RESULTS ACCORDING PAGE: http://www2.sisweb.com/mstools/isotope.htm
    double[] massResults = {138.904480, 139.907839};
    double[] abundResults = {1.00, .011};
    IMolecularFormula molFor = new MolecularFormula();
    molFor.addIsotope(builder.newInstance(IIsotope.class, "C"));
    molFor.addIsotope(builder.newInstance(IIsotope.class, "I"));
    Assert.assertEquals(2, molFor.getIsotopeCount());
    IsotopePatternGenerator isotopeGe = new IsotopePatternGenerator(.01);
    IsotopePattern isoPattern = isotopeGe.getIsotopes(molFor);
    Assert.assertEquals(2, isoPattern.getNumberOfIsotopes());
    Assert.assertEquals(massResults[0], isoPattern.getIsotope(0).getMass(), 0.01);
    Assert.assertEquals(massResults[1], isoPattern.getIsotope(1).getMass(), 0.01);
    Assert.assertEquals(abundResults[0], isoPattern.getIsotope(0).getIntensity(), 0.01);
    Assert.assertEquals(abundResults[1], isoPattern.getIsotope(1).getIntensity(), 0.01);
}