public function testQueryWithDistinctOn()
{
$query = self::$client->query()->kind(self::$kind)->distinctOn('lastName');
$results = $this->runQueryAndSortResults($query);
$this->assertEquals(self::$data[0], $results[0]->get());
$this->assertEquals(self::$data[2], $results[1]->get());
$this->assertEquals(2, count($results));
}