code: private Cookie[] constructCookies(final TestContext context) {
          final List<Cookie> cookies = cookieEnricher.enrich(template.getCookies(), context);
          return cookies.toArray(new Cookie[0]);
      }
docs: Replaces the dynamic content in the given list of cookies
  @param context The context to replace the variables with