Examples of unit testing using the Hamcrest library