Task 4-5: Added unit tests using junit4 and jmock frameworks.