private function verifyqueryEntitiesWorker($ret, $options)
 {
     $this->assertNotNull($ret->getEntities(), 'getTables');
     $expectedData = array();
     foreach (self::$entitiesInTable as $e) {
         array_push($expectedData, $e);
     }
     sort($expectedData);
     $projected = false;
     if (!is_null($options->getNextPartitionKey()) && !is_null($options->getNextRowKey())) {
         $expectedDataTmp = array();
         foreach ($expectedData as $e) {
             if ($e->getPartitionKey() > $options->getNextPartitionKey() || $e->getPartitionKey() == $options->getNextPartitionKey() && $e->getRowKey() >= $options->getNextRowKey()) {
                 array_push($expectedDataTmp, $e);
             }
         }
         $expectedData = $expectedDataTmp;
     }
     $q = $options->getQuery();
     $expectedFilter = $q->getFilter();
     $projected = count($q->getSelectFields()) != 0;
     $expectedData = TableServiceFunctionalTestUtils::filterEntityList($expectedFilter, $expectedData);
     if (!is_null($q->getTop()) && $q->getTop() < count($expectedData)) {
         $expectedDataTmp = array();
         for ($i = 0; $i < $q->getTop(); $i++) {
             array_push($expectedDataTmp, $expectedData[$i]);
         }
         $expectedData = $expectedDataTmp;
     }
     $this->compareEntityLists($ret->getEntities(), $expectedData, $projected);
 }