@Test
public void testCompare_IMolecularFormula_IMolecularFormula() {

    IMolecularFormula formula1 = new MolecularFormula();
    formula1.addIsotope(builder.newInstance(IIsotope.class, "C"), 1);
    formula1.addIsotope(builder.newInstance(IIsotope.class, "H"), 2);
    IMolecularFormula formula2 = new MolecularFormula();
    formula2.addIsotope(builder.newInstance(IIsotope.class, "C"), 1);
    formula2.addIsotope(builder.newInstance(IIsotope.class, "H"), 2);
    IMolecularFormula formula3 = new MolecularFormula();
    formula3.addIsotope(builder.newInstance(IIsotope.class, "C"), 1);
    IIsotope hyd = builder.newInstance(IIsotope.class, "H");
    hyd.setExactMass(2.002334234);
    formula3.addIsotope(hyd, 2);
    Assert.assertTrue(MolecularFormulaManipulator.compare(formula1, formula2));
    Assert.assertFalse(MolecularFormulaManipulator.compare(formula1, formula3));
}