fixed DocumentCountFunctionalTest for Java 6
Merge pull request #471 from giastfader/master

fixed DocumentCountFunctionalTest for Java 6