I have a service that has a method that makes a rest call using `apache httpclient`. I want to test the call using `junit` but i do not want to mock out the call but mock out the server that it is making the call to

My question is, is it possible to mock out a server using something like `mockwebserver` so that if you make a request to a specific url that this will be picked up from the service (without mocking the service) rather then going off to the real server?