Thanks for the reply. I would have preferred using Wiremock if it were possible. I had some luck with using
com.github.stefanbirkner.fakesftpserver.rule.FakeSftpServerRule and so I might end up using that.
Mountebank has some generic TCP support but since the entire library is also HTTP based, it doesn't look like it would be easy to use that either.