public function ensureCountIndexWithPrefixOfPrevious()
{
$this->queue->ensureCountIndex(['type' => 1, 'boo' => -1], false);
$this->queue->ensureCountIndex(['type' => 1], false);
$indexes = iterator_to_array($this->collection->listIndexes());
$this->assertSame(2, count($indexes));
$expected = ['payload.type' => 1, 'payload.boo' => -1];
$this->assertSame($expected, $indexes[1]['key']);
}