pub async fn serve(mock: Arc<Mock>, addr: &str) -> Result<(u16, JoinHandle<()>)>
Bind and serve until the process ends. Returns the bound port, which is what a test needs when it asked for port 0.