fakeClient = slclientfakes.NewFakeSoftLayerClient(username, apiKey) Expect(fakeClient).ToNot(BeNil()) fakeClient.SoftLayerServices["SoftLayer_Product_Package"] = &testhelpers.MockProductPackageService{} virtualGuestService, err = fakeClient.GetSoftLayer_Virtual_Guest_Service() Expect(err).ToNot(HaveOccurred()) Expect(virtualGuestService).ToNot(BeNil()) virtualGuest = datatypes.SoftLayer_Virtual_Guest{} virtualGuestTemplate = datatypes.SoftLayer_Virtual_Guest_Template{} }) Context("#GetName", func() { It("returns the name for the service", func() { name := virtualGuestService.GetName() Expect(name).To(Equal("SoftLayer_Virtual_Guest")) }) }) Context("#CreateObject", func() { BeforeEach(func() { fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_createObject.json") Expect(err).ToNot(HaveOccurred()) }) It("creates a new SoftLayer_Virtual_Guest instance", func() { virtualGuestTemplate = datatypes.SoftLayer_Virtual_Guest_Template{ Hostname: "fake-hostname", Domain: "fake.domain.com", StartCpus: 2,