Which one of the following statements contains a metaphor?

A. She was like a bird in a cage.
B. The water shone like a thousand diamonds.
C. My dream vanished as a puff of smoke.
D. The mighty oak is the king of the forest world.