title: Testing fasthttp with httptest
body: <p>I am wondering how I can test an application that's written with <a href="https://github.com/valyala/fasthttp" rel="nofollow noreferrer">fasthttp</a> using the <a href="https://golang.org/pkg/net/http/httptest/" rel="nofollow noreferrer">httptest package</a> in the base library of Go.</p>
  
  <p>I found <a href="https://elithrar.github.io/article/testing-http-handlers-go/" rel="nofollow noreferrer">this guide</a> which explains the testing pretty well, but the issue is that httptest does not satisfy the <code>http.Handler</code> interface so I have no idea how to do the <code>http.HandlerFunc</code> since fasthttp uses it's own <code>fasthttp.ListenAndServe</code> that's incompatible.</p>
  
  <p>Any ideas on how to create a wrapper, or how to otherwise test a fasthttp written library end to end?</p>