JERSEY-2164: added test (not fixed yet)

Change-Id: I796686427ea704f6f7acf05708d34b90e352f700
Merge "JERSEY-2164: added test (not fixed yet)"