Fixing dependency problem due to different versions of hamcrest on the classpath.