/**
  * @test
  *
  * @covers Pipedrive\Organizations\Controller::getOneByName
  *
  * @uses Pipedrive\Organizations\Controller::__construct
  * @uses Pipedrive\Organizations\Organization
  * @uses Pipedrive\Organizations\OrganizationDataTransferObject
  */
 public function getOneByNameShouldReturnNotFound()
 {
     $targetName = 'orgName';
     $this->getOrganizationRepository()->expects($this->once())->method('findOneBy')->with(['org_name' => $targetName])->willReturn(null);
     $response = $this->controller->getOneByName($targetName);
     $this->assertInstanceOf(Response::class, $response);
     $this->assertEquals(Response::HTTP_NOT_FOUND, $response->getStatusCode());
 }