function setupShutdownEndpoints(runId) {
  // Final harvest
  return {
    metric_data: nockRequest('metric_data', runId).reply(200),
    shutdown: nockRequest('shutdown', runId).reply(200)
  }
}
Tests fix for a bug where the agent stayed in a 'connected' state and
never hit a 'started' state after a restart. This prevented ever triggering
a final harvest, the shutdown callback would never be invoked and the process
would not be held open.

When broken, the callback is not invoked. The test ends prematurely and the metric_data
and shutdown endpoints are left pending in nock.
  x test unfinished
  x Failed to hit all expected endpoints.