Yes apparently you need to call getConnector()
But you can't call it if you are using the EmbeddedTomcat class.
Instead you need to call getApplicationUrl
This makes little sense but seems to work