I assumed the analogy meant that just by measuring the gravitational field outside the shell, you could figure out the mass distribution inside. And you can't, not in the general case.