Yeah, you'd need to factor out the bootstrap logic to have a generalised connection factory, such that in tests you can mock it out with something that returns an EmbeddedChannel.
I see. I thought it could be done as it was and I might just be missing something. Back to the drawing board...
Thanks for your help, all your materials are so great!