public function testCampaignLoading()
 {
     $this->adapter->setQuery('campaigns');
     $campaigns = $this->adapter->getCampaigns();
     $this->assertInstanceOf('FACTFinder\\Data\\CampaignIterator', $campaigns);
     $this->assertInstanceOf('FACTFinder\\Data\\Campaign', $campaigns[0]);
     $this->assertTrue($campaigns->hasRedirect());
     $this->assertEquals('http://www.fact-finder.de', $campaigns->getRedirectUrl());
     $this->assertTrue($campaigns->hasFeedback());
     $expectedFeedback = implode(PHP_EOL, array("test feedback 1", "test feedback 2"));
     $this->assertEquals($expectedFeedback, $campaigns->getFeedback('html header'));
     $this->assertEquals($expectedFeedback, $campaigns->getFeedback('9'));
     $expectedFeedback = "test feedback 3";
     $this->assertEquals($expectedFeedback, $campaigns->getFeedback('below header'));
     $this->assertEquals($expectedFeedback, $campaigns->getFeedback('6'));
     $this->assertTrue($campaigns->hasPushedProducts());
     $products = $campaigns->getPushedProducts();
     $this->assertEquals(1, count($products));
     $this->assertEquals('17552', $products[0]->getId());
     $this->assertEquals('..Fahrräder..', $products[0]->getField('Category1'));
     $this->assertTrue($campaigns->hasActiveQuestions());
     $questions = $campaigns->getActiveQuestions();
     $this->assertEquals(1, count($questions));
     $this->assertEquals('question text', $questions[0]->getText());
     $answers = $questions[0]->getAnswers();
     $this->assertEquals(2, count($answers));
     $this->assertEquals('answer text 1', $answers[0]->getText());
     $this->assertFalse($answers[0]->hasFollowUpQuestions());
     $this->assertEquals('answer text 2', $answers[1]->getText());
     $this->assertFalse($answers[1]->hasFollowUpQuestions());
     $this->assertFalse($campaigns->hasAdvisorTree());
     $advisorTree = $campaigns->getAdvisorTree();
     $this->assertEquals(0, count($advisorTree));
 }