First try using Mockito to write a simple unit test with a mocked REST service.