@Test
public void testCalculateIsotopesnCarbono() {

    // RESULTS ACCORDING PAGE: http://www2.sisweb.com/mstools/isotope.htm
    double[] massResults = {120.000000, 121.003360, 122.006709};
    double[] abundResults = {1.00, .108, 0.005};
    IMolecularFormula molFor = new MolecularFormula();
    molFor.addIsotope(builder.newInstance(IIsotope.class, "C"), 10);
    IsotopePatternGenerator isotopeGe = new IsotopePatternGenerator(0.0010);
    IsotopePattern isoPattern = isotopeGe.getIsotopes(molFor);
    Assert.assertEquals(3, isoPattern.getNumberOfIsotopes());
    Assert.assertEquals(massResults[0], isoPattern.getIsotope(0).getMass(), 0.01);
    Assert.assertEquals(massResults[1], isoPattern.getIsotope(1).getMass(), 0.01);
    Assert.assertEquals(massResults[2], isoPattern.getIsotope(2).getMass(), 0.01);
    Assert.assertEquals(abundResults[0], isoPattern.getIsotope(0).getIntensity(), 0.01);
    Assert.assertEquals(abundResults[1], isoPattern.getIsotope(1).getIntensity(), 0.01);
    Assert.assertEquals(abundResults[2], isoPattern.getIsotope(2).getIntensity(), 0.01);
}