- Added unit tests based on Mockito.