function getExpectedSegments(hooks) {
  return hooks.map((hookName) => {
    return `Nodejs/Middleware/Fastify/${hookName}/testHook`
  })
}
Helper to return the list of expected segments

@param {Array} hooks lifecyle hook names to build segment names from
@returns {Array} formatted list of expected segments