public function testInitialize()
{
$subdivision = $this->getMockBuilder('CommerceGuys\\Addressing\\Subdivision\\Subdivision')->disableOriginalConstructor()->getMock();
$subdivisionRepository = $this->getMockBuilder('CommerceGuys\\Addressing\\Subdivision\\SubdivisionRepository')->disableOriginalConstructor()->getMock();
$subdivisionRepository->expects($this->any())->method('getAll')->with(['BR', 'Porto Acre'])->will($this->returnValue([$subdivision]));
$this->collection->setRepository($subdivisionRepository);
$this->assertFalse($this->collection->isInitialized());
$this->assertCount(1, $this->collection);
$this->assertTrue($this->collection->isInitialized());
}