can't you use TestUtils.temporaryServerAddresses?