public function testGetHostName()
 {
     $req = new GetHostnameRequest();
     $resp = new GetHostnameResponse();
     $resp->setHostname('hostname');
     $this->apiProxyMock->expectCall('modules', 'GetHostname', $req, $resp);
     $this->assertEquals('hostname', SplOverride::gethostname());
     $this->apiProxyMock->verify();
 }
 public function testGetHostnameWithModuleVersionAndStringInstance()
 {
     $req = new GetHostnameRequest();
     $resp = new GetHostnameResponse();
     $req->setModule('module1');
     $req->setVersion('v1');
     $req->setInstance('73');
     $resp->setHostname('hostname');
     $this->apiProxyMock->expectCall('modules', 'GetHostname', $req, $resp);
     $this->assertEquals('hostname', ModulesService::getHostname('module1', 'v1', '73'));
     $this->apiProxyMock->verify();
 }