In either case, where there is mass there is gravity. And where there is gravity there is curved space, according to Einstein’s general theory of relativity. And where space is curved it can mimic the curvature of an ordinary glass lens and alter the pathways of light that pass through.