The mesoscopic Josephson junction: a classical quantum-like system