public function testAddMember()
 {
     $email = Utils::randomEmail();
     $user = new User();
     $user->setEmail($email);
     $newUser = Utils::getBuddy()->getApiMembers()->addWorkspaceMember($user, Utils::getWorkspaceDomain());
     $this->assertInstanceOf('Buddy\\Objects\\User', $newUser);
     $this->assertEquals($email, $newUser->getEmail());
 }
 public function testAddAndDeleteEmail()
 {
     $email = new Email();
     $email->setEmail(Utils::randomEmail());
     $resp = Utils::getBuddy()->getApiEmails()->addAuthenticatedUserEmail($email);
     $this->assertInstanceOf('Buddy\\Objects\\Email', $resp);
     $resp = Utils::getBuddy()->getApiEmails()->deleteAuthenticatedUserEmail($email->getEmail());
     $this->assertEquals(true, $resp);
 }