public function testSourceList()
{
$response = array('response_code' => 200, 'data' => array('count' => 1, 'sources' => array(array('id' => '78b3601ef667466d95f19570dcb74699', 'name' => 'My Updated PHP managed source', 'created_at' => 1435869526, 'status' => 'active', 'auth' => array(array('identity_id' => '7b1be3a398e646bbb3c7a5cb9717ba45', 'expires_at' => 1495869526, 'parameters' => array('value' => '363056350669209|09af1ce9c5d8d23147ec4eeb9a33aac2'))), 'resources' => array(array('resource_id' => '30bc448896de44b88604ac223cb7f26f', 'status' => 'valid', 'parameters' => array('url' => 'http://www.facebook.com/theguardian', 'title' => 'The Guardian', 'id' => 10513336322))), 'parameters' => array('comments' => true, 'likes' => true, 'page_likes' => true, 'posts_by_others' => true)))), 'rate_limit' => 200, 'rate_limit_remaining' => 150);
DataSift_MockApiClient::setResponse($response);
$sources = DataSift_Source::listSources($this->user);
$source1 = $sources['sources'][0];
$this->assertEquals($source1->getId(), '78b3601ef667466d95f19570dcb74699', 'Source ID differs to test data');
$this->assertEquals($sources['count'], 1, 'Count differs to test data');
}