SDK-430: Workaround for hamcrest both() method with jdk 1.6.