public function testLoadAllGroups()
{
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('loadAllGroupsData')->will($this->returnValue(array()));
$mapperMock = $this->getMapperMock();
$mapperMock->expects($this->once())->method('extractGroupsFromRows')->with($this->equalTo(array()))->will($this->returnValue(array(new Group())));
$handler = $this->getHandler();
$res = $handler->loadAllGroups();
$this->assertEquals(array(new Group()), $res);
}