public function testCreateApiKeyReturnsCorrectData() { $apiKey = new ApiKey(); $apiKey->setName('test'); $this->setMockResponse($this->client, array('api-keys/createApiKey')); $result = $this->client->createApiKey($apiKey); $this->assertInstanceOf('\\Mgrt\\Model\\ApiKey', $result); }