getControllerObjectName() public method

Returns the object name of the controller defined by the package key and controller name
public getControllerObjectName ( ) : string
return string The controller's Object Name
 /**
  * @test
  */
 public function getControllerObjectNameReturnsAnEmptyStringIfTheResolvedControllerDoesNotExist()
 {
     $mockObjectManager = $this->createMock(ObjectManagerInterface::class);
     $mockObjectManager->expects($this->at(0))->method('getCaseSensitiveObjectName')->with('SomePackage\\Some\\Subpackage\\Controller\\SomeControllerController')->will($this->returnValue(false));
     $mockPackageManager = $this->createMock(PackageManager::class);
     $mockPackageManager->expects($this->any())->method('getCaseSensitivePackageKey')->with('somepackage')->will($this->returnValue('SomePackage'));
     $this->inject($this->actionRequest, 'objectManager', $mockObjectManager);
     $this->inject($this->actionRequest, 'packageManager', $mockPackageManager);
     $this->actionRequest->setControllerPackageKey('somepackage');
     $this->actionRequest->setControllerSubPackageKey('Some\\Subpackage');
     $this->actionRequest->setControllerName('SomeController');
     $this->assertEquals('', $this->actionRequest->getControllerObjectName());
 }