}
@Test
public void shouldSetLoadingAndFailureOnFailedServerCall() {
// given
TestDispatchAsync spy = spy(new TestDispatchAsync(service, injector));
AsyncEventPresenterTestUtil presenter = new AsyncEventPresenterTestUtil(eventBus, view, proxy, spy);
willAnswer(new GetAsynchronousFailureAnswer()).given(spy).execute(eq(new MyAction()),
Matchers.<AsyncCallback<MyResult>>any());
// when