public function testFromJSONInstantiations() { $obj = Agent::fromJSON('{"mbox":"' . COMMON_MBOX . '"}'); $this->assertInstanceOf('TinCan\\Agent', $obj); $this->assertSame(COMMON_MBOX, $obj->getMbox(), 'mbox value'); }