now mocking the service class within the generate code command test.