/**
  * @SuppressWarnings(PHPMD.ShortVariable)
  */
 public function test_getById()
 {
     /** === Test Data === */
     $id = 21;
     $data = ['data'];
     /** === Setup Mocks === */
     // $query = $this->_factorySelect->getQueryToSelect();
     $mQuery = $this->_mockDbSelect();
     $this->mFactorySelect->shouldReceive('getQueryToSelect')->once()->andReturn($mQuery);
     // $query->where(self::AS_STOCK . '.' . Cfg::E_CATINV_STOCK_A_STOCK_ID . '=:id');
     $mQuery->shouldReceive('where')->once();
     // $data = $this->_conn->fetchRow($query, ['id' => $id]);
     $this->mConn->shouldReceive('fetchRow')->once()->andReturn($data);
     // $result = $this->_initResultRead($data);
     // $result = $this->_manObj->create(AggWarehouse::class);
     $this->mManObj->shouldReceive('create')->once()->andReturn(new AggWarehouse());
     /** === Call and asserts  === */
     $res = $this->obj->getById($id);
     $this->assertInstanceOf(AggWarehouse::class, $res);
 }