void () { final ArtifactPointer pointer = getPointerManager().createPointer("xxx"); assertNull(pointer.getArtifact()); final Artifact artifact = addArtifact("xxx"); assertSame(artifact, pointer.getArtifact()); assertSame(pointer, getPointerManager().createPointer("xxx")); assertSame(pointer, getPointerManager().createPointer(artifact)); }