public function testAddToUsageCounts()
 {
     $statsTable = new PropertyStatisticsTable($this->getStore()->getConnection('mw.db'), \SMWSQLStore3::PROPERTY_STATISTICS_TABLE);
     $this->assertTrue($statsTable->deleteAll() !== false);
     $counts = array(1 => 42, 2 => 0, 9001 => 9001, 9002 => $this->isWinOS() ? pow(2, 30) : pow(2, 31), 9003 => 1);
     foreach ($counts as $propId => $count) {
         $this->assertTrue($statsTable->insertUsageCount($propId, $count) !== false);
     }
     $additions = array(2 => 42, 9001 => -9000, 9003 => 0);
     $this->assertTrue($statsTable->addToUsageCounts($additions) !== false);
     foreach ($additions as $propId => $addition) {
         $counts[$propId] += $addition;
     }
     $this->assertEquals($counts, $statsTable->getUsageCounts(array_keys($counts)));
 }