8251252: Add automated testcase for fix done in JDK-8214253

Backport-of: b6c861f9f8c8558ed6dc727d3379e58411d8f3f0
1 file changed