Version2 working

Generally you want to rely on the EasyMock framework for mocking things vs. creating stubs like that.  Less code to maintain and cleaner tests. In this case, I think you want to mock out part which takes the callback, and set it to return your simple response.