HHH-7934 - Test case
(cherry picked from commit 2f71f071ec710b89fae7e36ff48f4cd908883594)