diff --git a/Aggregation/PercentileRanksAggregationTest.php b/Aggregation/PercentileRanksAggregationTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..b19635b2683a085ce7d049cc153996e9f6b93fdb
--- /dev/null
+++ b/Aggregation/PercentileRanksAggregationTest.php
@@ -0,0 +1,28 @@
+<?php
+
+/*
+ * This file is part of the ONGR package.
+ *
+ * (c) NFQ Technologies UAB <info@nfq.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace ONGR\ElasticsearchBundle\Tests\Unit\DSL\Aggregation;
+
+use ONGR\ElasticsearchBundle\DSL\Aggregation\PercentileRanksAggregation;
+
+class PercentileRanksAggregationTest extends \PHPUnit_Framework_TestCase
+{
+    /**
+     * Tests if exception is thrown.
+     *
+     * @expectedException \LogicException
+     */
+    public function testIfPercentileRanksAggregationThrowsAnException()
+    {
+        $agg = new PercentileRanksAggregation('foo');
+        $agg->toArray();
+    }
+}