/**
  * @return Model
  */
 private function getTestModel()
 {
     $Facker = FackerFactory::create();
     $Model = new Model();
     $RegionAPI = new RegionAPI();
     $NodeTypeAPI = new NodeTypeAPI();
     $this->mockResponse(200, RegionTest::getMockData());
     $Region = $RegionAPI->get('aws', 'eu-west-1');
     $this->mockResponse(200, NodeTypeTest::getMockData());
     $NodeType = $NodeTypeAPI->get('aws', 't2.nano');
     $Model->setName('Cluster-test-' . $Facker->lexify())->setRegion($Region->getResourceUri())->setNodeType($NodeType->getResourceUri())->setTargetNumNodes(1)->setDisk(10)->setTags(['unit-test']);
     return $Model;
 }
 public function testGetListByUri()
 {
     $this->mockGetListResponse(200, $this->getMockData());
     $API = new API();
     $this->assertInstanceOf(RegionGetListResponse::class, $API->getListByUri('mock_uri'));
 }