don't use java 7 only api in integration test

+review REVIEW-5170