public function testHasDepartementAndCodeAndNom()
 {
     $pays = new Pays('France');
     $region = new Region($pays, 82, 'Rhône-Alpes');
     $departement = new Departement($region, 38, 'Isère');
     $commune = new Commune($departement, 185, 'Grenoble');
     $this->assertEquals('Grenoble', $commune->getNom());
     $this->assertEquals(185, $commune->getCode());
     $this->assertEquals($departement, $commune->getDepartement());
     $this->assertContains($commune, $departement->getCommunes());
 }