This test would be testing if Akka IO works/that you are using the API correctly and could remove your actor from the equation and instead use a TestProbe.
It could be a good idea to separate the setup/register logic from constructing your actor instance. This way you could test:
- that your setup code is correct using a TestProbe verifying that you get a Bound message
- Send your actor the same messages that IO would send to it and verify that it behaves correctly