/**
  * Tests if forcing update settings works as expected.
  */
 public function testUpdateSettingsForce()
 {
     $connection = new Connection($this->getClient(), ['index' => 'foo', 'body' => ['mappings' => ['foo' => ['properties' => []]]]]);
     $this->assertNotEmpty($connection->getMapping('foo'), 'Mapping should exist');
     $connection->updateSettings(['index' => 'foo'], true);
     $this->assertNull($connection->getMapping('foo'), 'Mapping should not exist anymore.');
     $this->assertEquals('foo', $connection->getIndexName(), 'Index name is not correct.');
 }