[DROOLS-27] add test case proving that a declared type extending an imported type builds correctly
(cherry picked from commit 896a078a590128e549edb875dd4b187e2804f581)