Copied from comet-java-ecamples-2.5.1 to get the test result for myself