/**
  * @test
  * @group metadata
  * @group organization
  */
 public function the_index_of_an_organization_name_can_be_retrieved()
 {
     $nameOne = new OrganizationName('OpenConext', 'en');
     $nameTwo = new OrganizationName('Different', 'en');
     $notInList = new OrganizationName('SomeName', 'en');
     $list = new OrganizationNameList(array($nameOne, $nameTwo));
     $this->assertEquals(0, $list->indexOf($nameOne));
     $this->assertEquals(1, $list->indexOf($nameTwo));
     $this->assertEquals(-1, $list->indexOf($notInList), 'An element not in the list must have an index of -1');
 }