public function testProfile() { $profile = (new ProfileObjectBuilder())->globalID(Sonic::getContextGlobalID())->displayName($this->aliceSocialRecord->getDisplayName())->param('x', 'y')->build(); $this->assertTrue($profile->validate()); $this->assertEquals($profile, ProfileObjectBuilder::buildFromJSON($profile->getJSONString())); }