fix integration tests on java <> 7

+review REVIEW-5241