/**
  * @return Blockchain
  */
 public function testGet()
 {
     $request = $this->operation['response']['body'];
     $blockchain = new Blockchain($request);
     $result = Blockchain::get($blockchain->getName(), array(), $this->apiContext, $this->mockBlockCypherRestCall);
     $this->assertNotNull($result);
     $this->assertInstanceOf('\\BlockCypher\\Api\\Blockchain', $result);
     // Assert only immutable values.
     $this->assertEquals($blockchain->getName(), $result->getName());
     return $result;
 }
 /**
  * @depends testSerializationDeserialization
  * @param Blockchain $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "BTC.main");
     $this->assertEquals($obj->getHeight(), 361452);
     $this->assertEquals($obj->getHash(), "0000000000000000110740bc53a7caf67e1c5761eb883360af2c9f27b7ca4862");
     $this->assertEquals($obj->getTime(), "2015-06-18T09:17:33.674206028Z");
     $this->assertEquals($obj->getLatestUrl(), "https://api.blockcypher.com/v1/btc/main/blocks/0000000000000000110740bc53a7caf67e1c5761eb883360af2c9f27b7ca4862");
     $this->assertEquals($obj->getPreviousHash(), "00000000000000000fee58c66e4481ed836b9ea182a84adf39b70e110a21d806");
     $this->assertEquals($obj->getPreviousUrl(), "https://api.blockcypher.com/v1/btc/main/blocks/00000000000000000fee58c66e4481ed836b9ea182a84adf39b70e110a21d806");
     $this->assertEquals($obj->getPeerCount(), 302);
     $this->assertEquals($obj->getUnconfirmedCount(), 2116);
     $this->assertEquals($obj->getHighFeePerKb(), 41304);
     $this->assertEquals($obj->getMediumFeePerKb(), 25631);
     $this->assertEquals($obj->getLowFeePerKb(), 12500);
     $this->assertEquals($obj->getLastForkHeight(), 360322);
     $this->assertEquals($obj->getLastForkHash(), "00000000000000000f8d0292d70f3d28237a5610c39446a447c8907a50dbf75d");
 }