public function testCreateOrganizer($groupKey, Organizer $organizer)
 {
     $actualOrganizer = $this->organizerService->createOrganizer($groupKey, $organizer);
     $this->assertNotNull($actualOrganizer);
     $this->assertInstanceOf('\\kenobi883\\GoToMeeting\\Models\\Organizer', $actualOrganizer);
     $this->assertAttributeNotEmpty('organizerKey', $actualOrganizer);
 }
 /**
  * @dataProvider createOrganizer
  */
 public function testCreateOrganizer($groupKey, Organizer $organizer, $response)
 {
     $client = $this->getMockBuilder('Client')->setMethods(array('sendRequest'))->getMock();
     $client->method('sendRequest')->will($this->returnValue($response));
     $client->expects($this->once())->method('sendRequest')->with($this->equalTo('POST'), $this->logicalAnd($this->stringStartsWith('groups'), $this->stringEndsWith('organizers')), null, false, $organizer->toArrayForApi());
     $organizerService = new OrganizerService($client);
     $actualOrganizer = $organizerService->createOrganizer($groupKey, $organizer);
     $this->assertNotNull($actualOrganizer);
     $this->assertAttributeEquals($response, 'organizerKey', $actualOrganizer);
 }