Added hamcrest dependencies, also refactored to use hamcrest core assertThat method instead of junit's one.