8252194: Add automated test for fix done in JDK-8218469

Backport-of: 1ae6b533fbba433e64868aa3b6846041e3a91136
1 file changed