@Test
public void getMostAbundant() {

    IMolecularFormula mf = new MolecularFormula();
    mf.addIsotope(new Atom("C"), 6);
    mf.addIsotope(new Atom("Br"), 6);
    IMolecularFormula mamf = MolecularFormulaManipulator.getMostAbundant(mf);
    assertThat(MolecularFormulaManipulator.getString(mamf, false, true),
               is("[12]C6[79]Br3[81]Br3"));
}