diff --git a/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php b/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php
index <HASH>..<HASH> 100644
--- a/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php
+++ b/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php
@@ -832,6 +832,17 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase
 
         $config->setCustomNumericFunctions(array());
     }
+
+    /**
+     * @group DDC-826
+     */
+    public function testMappedSuperclassAssociationJoin()
+    {
+        $this->assertSqlGeneration(
+            'SELECT f FROM Doctrine\Tests\Models\DirectoryTree\File f JOIN f.parentDirectory d WHERE f.id = ?1',
+            'SELECT f0_.id AS id0, f0_.extension AS extension1, f0_.name AS name2 FROM File f0_ INNER JOIN Directory d1_ ON f0_.parentDirectory_id = d1_.id WHERE f0_.id = ?'
+        );
+    }
 }
DDC-<I>, DDC-<I>, DDC-<I> - Added another testcase to verify mapped superclass + association dql alias generation