@Test
public void testGetString_IMolecularFormula_arrayString_boolean() {

    IMolecularFormula formula = new MolecularFormula();
    formula.addIsotope(builder.newInstance(IIsotope.class, "C"), 2);
    formula.addIsotope(builder.newInstance(IIsotope.class, "H"), 2);
    Assert.assertEquals("C2H2", MolecularFormulaManipulator.getString(formula));
    String[] newOrder = new String[2];
    newOrder[0] = "H";
    newOrder[1] = "C";
    Assert.assertEquals("H2C2", MolecularFormulaManipulator.getString(formula, newOrder, true));
}