public function testGetting()
{
$this->indicesManager->create('authors');
$authorsIndex = new AuthorsIndex();
$this->assertArrayHasKey('authors', $this->indicesManager->indices());
$expectedIndex = ['authors' => ['mappings' => $authorsIndex->getTypes()]];
$this->assertEquals($expectedIndex, $this->indicesManager->get('authors'));
$expectedIndex = ['authors' => ['mappings' => array_only($authorsIndex->getTypes(), 'producers')]];
$this->assertEquals($expectedIndex, $this->indicesManager->getType('authors', 'producers'));
}