}
public void testInterleavedOnOffBehaviour() {
this.presenter = new LoadPresenter(viewMock, eventBus);
eventBus.fireEvent(new RpcBeginEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcBeginEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcBeginEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcEndEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcBeginEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcEndEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcBeginEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcBeginEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcEndEvent());
assertTrue(presenter.isLoading());
eventBus.fireEvent(new RpcEndEvent());