Thought experiment about the equivalence of mass and energy