diff --git a/Tests/Unit/Client/ConnectionTest.php b/Tests/Unit/Client/ConnectionTest.php
index <HASH>..<HASH> 100644
--- a/Tests/Unit/Client/ConnectionTest.php
+++ b/Tests/Unit/Client/ConnectionTest.php
@@ -328,6 +328,32 @@ class ConnectionTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
+     * Tests if exception is thrown while validating warmers.
+     *
+     * @expectedException \RuntimeException
+     * @expectedExceptionMessage Warmer(s) named bar do not exist. Available: foo
+     */
+    public function testValidateWarmersException()
+    {
+        $warmerMock = $this->getMock('ONGR\ElasticsearchBundle\Cache\WarmerInterface');
+        $warmerMock
+            ->expects($this->once())
+            ->method('warmUp');
+        $warmerMock
+            ->expects($this->once())
+            ->method('getName')
+            ->will($this->returnValue('foo'));
+
+        $connection = new Connection($this->getClient(), []);
+        $connection->addWarmer($warmerMock);
+
+        $object = new \ReflectionObject($connection);
+        $method = $object->getMethod('validateWarmers');
+        $method->setAccessible(true);
+        $method->invokeArgs($connection, [['bar']]);
+    }
+
+    /**
      * Tests Connection#setIndexName method.
      */
     public function testSetIndexName()
added Connection#validateWarmers test when exception is thrown