Client code for Grizzly Bug #1679 (https://java.net/jira/browse/GRIZZLY-1679)