Change the scope of the org.hamcrest dependency to "test".