fixed test failure with JDK6 (https://travis-ci.org/terasolunaorg/terasoluna-gfw/jobs/45088216#L3300) #224