function it_converts_node_to_street_entry(ObjectManager $om, ObjectRepository $or)
    {
        $xml = <<<EOT
<row>
    <col name="WOJ">02</col>
    <col name="POW">23</col>
    <col name="GMI">09</col>
    <col name="RODZ_GMI">2</col>
    <col name="SYM">0884849</col>
    <col name="SYM_UL">10268</col>
    <col name="CECHA">ul.</col>
    <col name="NAZWA_1">Księżycowa </col>
    <col name="NAZWA_2"/>
    <col name="STAN_NA">2013-10-10</col>
</row>
EOT;
        $place = new Place(884849);
        $place->setName('City');
        $or->findOneBy(array('id' => 884849))->shouldBeCalled()->willReturn($place);
        $street = new Street($place, 10268);
        $street->setName('Księżycowa')->setAdditionalName('')->setType('ul.');
        $this->beConstructedWith(new \SimpleXMLElement($xml), $om);
        $this->convertToEntity()->shouldBeLike($street);
    }
 /**
  * @param $id
  * @param $type
  * @param $name
  * @param $additionalName
  * @param $placeName
  * @internal param $row
  */
 private function createStreet($id, $type, $name, $additionalName, $placeName)
 {
     $street = new Street($this->findPlaceByName($placeName), $id);
     $street->setType($type)->setName($name)->setAdditionalName($additionalName);
     $this->kernel->getContainer()->get('doctrine')->getManager()->persist($street);
     $this->kernel->getContainer()->get('doctrine')->getManager()->flush();
 }