I replaced a bathroom drain after having or bathroom counter replaced. The problem I had with this is that because the wall drain is soooo close too the cabinet I could not turn the wall drain so I had to improvise. The only thing I could come up with without having to remove the counter our cut the pipe is the picture I have attached. It seems too work without leaking but I wanted to get a professional opinion if this is a good way to go our should I eventually duo something different down the road.
The only problem I have had with my installation is because the run of is not deep enough, I had to plug the hole for the plunger/plug attachment on the downward pipe under the sink. As the water would drain, it would reach a high enough level to where water would leak from where the lever attaches. So I had to remove the plunger/plug from the sink all together.