  We report on the experimental characterization of a spatially extended
Josephson junction realized with a coherently-coupled two-spin-component
superfluid, trapped in an elongated potential. We study how dimensionality and
inhomogeneity affect the control of the local magnetization and identify a
protocol for the preparation of the whole system in the ground state.
