Updated : In this controller I am trying to test the user login process and it calls loginRequest method in WebService to send out user credentials as a login message. A loginreply message is received by the controller.If login process is successful a URL redirection should happen.I have used jasmine spy objects to mock the WebService functionality.Updated : In this controller I am trying to tes