c client.DaemonClient server *ghttp.Server marshaler *lfakes.Marshaler unmarshaler *lfakes.Unmarshaler roundTripper *fakes.RoundTripper httpClient *http.Client ) BeforeEach(func() { server = ghttp.NewServer() marshaler = &lfakes.Marshaler{} unmarshaler = &lfakes.Unmarshaler{} roundTripper = &fakes.RoundTripper{} roundTripper.RoundTripStub = http.DefaultTransport.RoundTrip httpClient = &http.Client{ Transport: roundTripper, } c = client.DaemonClient{ JSONClient: client.JSONClient{ BaseURL: server.URL(), Marshaler: marshaler, Unmarshaler: unmarshaler, HttpClient: httpClient, }, } marshaler.MarshalStub = json.Marshal