expect(mockDataProvider.getList()).andReturn(dataProviderList).anyTimes();
}
@SuppressWarnings("unchecked")
private void setupMockEventBus(boolean expectAllEvents)
{
<BUG>expect(mockEventBus.addHandler(eq(TransUnitUpdatedEvent.getType()), and(capture(capturedTransUnitUpdatedEventHandler), isA(TransUnitUpdatedEventHandler.class)))).andReturn(createMock(HandlerRegistration.class)).once();

expect(mockEventBus.addHandler((GwtEvent.Type<EventHandler>) notNull(), (EventHandler) notNull())).andReturn(createMock(HandlerRegistration.class)).anyTimes();
</BUG>
mockEventBus.fireEvent(and(capture(capturedEventBusEvent), isA(GwtEvent.class)));

expect(mockDataProvider.getList()).andReturn(dataProviderList).anyTimes();
}
@SuppressWarnings("unchecked")
private void setupMockEventBus(boolean expectAllEvents)
{
expect(mockEventBus.addHandler(eq(TransUnitUpdatedEvent.getType()), and(capture(capturedTransUnitUpdatedEventHandler), isA(TransUnitUpdatedEventHandler.class)))).andReturn(mockHandlerRegistration());
expect(mockEventBus.addHandler((GwtEvent.Type<EventHandler>) notNull(), (EventHandler) notNull())).andReturn(mockHandlerRegistration()).anyTimes();
mockEventBus.fireEvent(and(capture(capturedEventBusEvent), isA(GwtEvent.class)));
