void () { final Artifact a = addArtifact("a"); final ArtifactPointer p = getPointerManager().createPointer(a); final ModifiableArtifactModel model = getArtifactManager().createModifiableModel(); assertSame(a, p.getArtifact()); final ModifiableArtifact modifiable = model.getOrCreateModifiableArtifact(a); assertSame(modifiable, p.findArtifact(model)); modifiable.setName("b"); assertSame(a, p.getArtifact()); assertSame(modifiable, p.findArtifact(model)); assertEquals("a", p.getArtifactName()); assertEquals("b", p.getArtifactName(model)); commitModel(model); assertSame(a, p.getArtifact()); assertEquals("b", p.getArtifactName()); }