public function testInitRest() { $rest = Rest::initRest('ExampleApi', 'http://www.example.com/services/tests/mocks/mock-api-class/test'); $this->assertInstanceOf('\\Webiny\\Component\\Rest\\Rest', $rest); }