public function testUpdateTemplate()
 {
     $container = $responses = [];
     $template = $this->templateConfiguration;
     $template['html'] = '<html><body>Yay it was changed.</body></html>';
     $responses[] = new Response(200, [], json_encode($template));
     $client = $this->getClient($container, $responses);
     $api = new KlaviyoApi($client, $this->apiKey);
     $template_service = new TemplateService($api);
     $template = TemplateModel::create($this->templateConfiguration);
     $template->html = '<html><body>Yay it was changed.</body></html>';
     $response = $template_service->updateTemplate($template);
     $this->assertEquals($template, $response);
 }