You should have used a class from org.hamcrest