void () { final ModifiableArtifactModel model = getArtifactManager().createModifiableModel(); final ModifiableArtifact artifact = model.addArtifact("a", PlainArtifactType.getInstance()); final ArtifactPointer pointer = getPointerManager().createPointer(artifact, model); assertSame(artifact, pointer.getArtifact()); model.dispose(); assertNull(pointer.getArtifact()); assertTrue(getPointerManager().getResolvedPointers().isEmpty()); }