function it_converts_node_to_province(ObjectManager $om, ObjectRepository $or)
    {
        $xml = <<<EOT
<row>
    <col name="WOJ">02</col>
    <col name="POW"/>
    <col name="GMI"/>
    <col name="RODZ"/>
    <col name="NAZWA">DOLNOŚLĄSKIE</col>
    <col name="NAZDOD">województwo</col>
    <col name="STAN_NA">2013-01-01</col>
</row>
EOT;
        $expectedProvince = new Province(2);
        $expectedProvince->setName('DOLNOŚLĄSKIE');
        $this->beConstructedWith(new \SimpleXMLElement($xml), $om);
        $this->convertToEntity()->shouldBeLike($expectedProvince);
    }
 protected function createProvince($code, $name)
 {
     $provinceEntity = new Province($code);
     $provinceEntity->setName($name);
     $this->kernel->getContainer()->get('doctrine')->getManager()->persist($provinceEntity);
     $this->kernel->getContainer()->get('doctrine')->getManager()->flush();
 }