MolecularFormula implements IMolecularFormula { public MolecularFormula() { isotopes = new HashMap<IIsotope, Integer>(); } MolecularFormula(); @Override IMolecularFormula add(IMolecularFormula formula); @Override IMolecularFormula addIsotope(IIsotope isotope); @Override IMolecularFormula addIsotope(IIsotope isotope, int count); @Override boolean contains(IIsotope isotope); @Override Integer getCharge(); @Override int getIsotopeCount(IIsotope isotope); @Override int getIsotopeCount(); @Override Iterable<IIsotope> isotopes(); @Override void setCharge(Integer charge); @Override void removeAllIsotopes(); @Override void removeIsotope(IIsotope isotope); @Override Object clone(); @Override void setProperty(Object description, Object property); @Override void removeProperty(Object description); @Override T getProperty(Object description); @Override T getProperty(Object description, Class<T> c); @Override Map<Object, Object> getProperties(); @Override void setProperties(Map<Object, Object> properties); @Override IChemObjectBuilder getBuilder();  }
@Test public void testMolecularFormula() { IMolecularFormula mf = new MolecularFormula(); Assert.assertNotNull(mf); }
@Test public void testMolecularFormula() { IMolecularFormula mf = getBuilder().newInstance(IMolecularFormula.class); Assert.assertNotNull(mf); }