Fix Java 7 test issue.