@Test
public void testClone() throws Exception {

    IsotopeContainer isoC = new IsotopeContainer();
    IMolecularFormula formula = builder.newInstance(IMolecularFormula.class);
    isoC.setFormula(formula);
    double mass = 130.00;
    isoC.setMass(mass);
    double intensity = 130.00;
    isoC.setIntensity(intensity);
    IsotopeContainer clone = (IsotopeContainer) isoC.clone();
    Assert.assertEquals(mass, clone.getMass(), 0.001);
    Assert.assertEquals(intensity, clone.getIntensity(), 0.001);
    Assert.assertEquals(formula, clone.getFormula());
}