New unit tests

Added junit test with mockito mock objects to test the service.