@Override
@Test
public void testStateChanged_ButNotAfterRemoval_AtomContainerSet() {

    ChemObjectListener listener = new ChemObjectListener();
    IChemModel chemObject = (IChemModel) newChemObject();
    chemObject.addListener(listener);
    IAtomContainerSet molSet = chemObject.getBuilder().newInstance(IAtomContainerSet.class);
    chemObject.setMoleculeSet(molSet);
    Assert.assertFalse(listener.getChanged());
    // remove the set from the IChemModel
    chemObject.setMoleculeSet(null);
    // reset the listener
    listener.reset();
    Assert.assertFalse(listener.getChanged());
    // changing the set must *not* trigger a change event in the IChemModel
    molSet.addAtomContainer(chemObject.getBuilder().newInstance(IAtomContainer.class));
    Assert.assertFalse(listener.getChanged());
}