expect(vertx.eventBus()).andReturn(eventBus).times(2);
expect(eventBus.registerHandler(eq(eventBusAddress), anyObject(Handler.class))).andAnswer(new IAnswer<EventBus>() {
@Override
public EventBus answer() throws Throwable {
Handler handler = (Handler) getCurrentArguments()[1];
handler.handle(messageMock);
return eventBus;
}
}).once();
expect(eventBus.unregisterHandler(eq(eventBusAddress), anyObject(Handler.class))).andReturn(eventBus).once();