Changed test method to hamcrest from assert.