@Test
public void testRemoveAllIsotopes() {

    MolecularFormulaRange mfRange = new MolecularFormulaRange();
    IIsotope carb = builder.newInstance(IIsotope.class, "C");
    IIsotope flu = builder.newInstance(IIsotope.class, "F");
    IIsotope h1 = builder.newInstance(IIsotope.class, "H");
    mfRange.addIsotope(carb, 0, 10);
    mfRange.addIsotope(flu, 0, 10);
    mfRange.addIsotope(h1, 0, 10);
    // remove the Fluorine
    mfRange.removeAllIsotopes();
    Assert.assertEquals(0, mfRange.getIsotopeCount());
    Assert.assertEquals(-1, mfRange.getIsotopeCountMin(carb));
    Assert.assertEquals(-1, mfRange.getIsotopeCountMin(h1));
    Assert.assertEquals(-1, mfRange.getIsotopeCountMin(flu));
}