Regression test for GLASSFISH-16318

