Apollo 9 was the second manned test in Earth orbit. The test took place in March 1969, and lasted for several days. The flight tested all the Apollo hardware - Saturn, Apollo, Command Module and Lunar Module.
The flight included an EVA and tested the undocking and re-docking of the Lunar Module and Command module. This manouvre was necessary for landing on the Moon.