I'm trying to show that if solid tori $T_1, T_2; T_i=S^1 \times D^2$ ,are glued by homeomorphisms between their respective boundaries, then the homeomorphism type of the identification space depends on the choice of homeomorphism up to, I think, isotopy ( Please forgive the rambling; I'm trying to put together a lot of different things from different sources, and I don't yet have a very coherent general picture.) I first thought of Lens spaces, but the gluing here is not done by a homeomorphism.
I have some fuzzy ideas here that I would like to make precise: I know this has to see with Heegard splittings; specifically, this is a genus-1 splitting ( actually, genus-1 gluing ) and the gluing may be determined by a mapping in $SL(2,\mathbb Z)$, which determines the induced map on the top homology , and different induced maps would result in different homeomorphic types on the glued spaces.
I think we can also see this from the perspective of Dehn surgery ( please feel free to correct anything I write here ), where we remove a link $L$ and a tubular 'hood $T(L)$ of $L$ , and then glue another torus. I know then an n-framing is equivalent to removing a solid torus, twisting n times and then regluing. But it's obvious from the post that I don't know how to show that the homeomorphism class of the space glued along $h: \partial T_1 \rightarrow \partial T_2$ depends on $h$.
Thanks, and sorry for the rambling ( not my fault, I was born a rambling man.)
To see that isotopic maps produce homoeomorphic manifolds, consider the manifold given by $$D^2 \times S^1 \cup_f S^1 \times S^1 \times I \cup_g D^2 \times S^1.$$ If $f$ and $g$ are isotopic, then omitting either the first or the second term produces a space homeomorphic to a solid torus rel boundary, so the whole thing is homeomorphic to either gluing.
In the other direction, if you believe $S^2 \times S^1$ and $S^3$ are not homeomorphic, either of these is relatively easy to produce (e.g. $S^3 = \{x^2 + y^2 + z^2 + w^2 = 1\} = \{x^2 + y^2 \le 1/2\} \cup \{z^2+w^2 \le 1/2\}$).