void () { Artifact artifact = addArtifact("aaa"); assertSame(artifact, assertOneElement(getArtifacts())); final ModifiableArtifactModel model = getArtifactManager().createModifiableModel(); // Just create an instance of modifiable artifact model.getOrCreateModifiableArtifact(artifact); model.removeArtifact(artifact); final MyArtifactListener listener = subscribe(); commit(model); assertEmpty(getArtifacts()); assertEquals("removed:aaa;", listener.clearMessages()); }