Longest continuous period in space is just 1.2 years. Almost all human testing is yet to be done before we know if the Mars mission is possible without rotational gravity and heavy and expensive radiation shielding. Nobody knows how much gravity on Mars surface (0.38 g) or on the Moon surface (0.17g) helps with the problems and recovery.
Simulated Mission where astronauts spends 9 months on ISS, few months in moon (or short visit on earth) then another 9 months on ISS would tell something. Radiation is not as bad as in the Mars trip, so it would be safer than the eventual Mars mission.