Survival training is one of the biggest ways that we did that. I think four years of that before we flew made us really ready for life on station and we adapted well.
I think the most surprising thing about space was how readily humans can adapt to it.