@Test
public void testCalculateIsotopesAllBromine() {

    // RESULTS ACCORDING PAGE: http://www2.sisweb.com/mstools/isotope.htm
    double[] massResults = {157.836669, 159.834630, 161.832580};
    double[] abundResults = {.512, 1.00, .487};
    IMolecularFormula molFor = new MolecularFormula();
    molFor.addIsotope(builder.newInstance(IIsotope.class, "Br"));
    molFor.addIsotope(builder.newInstance(IIsotope.class, "Br"));
    IsotopePatternGenerator isotopeGe = new IsotopePatternGenerator(.1);
    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);
}