void () { Artifact a = addArtifact("a"); ModifiableArtifactModel model = getArtifactManager().createModifiableModel(); ModifiableArtifact modifiable = model.getOrCreateModifiableArtifact(a); ArtifactPointer pointer = getPointerManager().createPointer(modifiable); assertSame(modifiable, pointer.getArtifact()); commitModel(model); assertSame(a, pointer.getArtifact()); Map.Entry<String, ? extends ArtifactPointer> mapping = assertOneElement(getPointerManager().getResolvedPointers()); assertEquals(a.getName(), mapping.getKey()); assertSame(a, mapping.getValue().getArtifact()); assertSame(pointer, mapping.getValue()); }