@Test public void createRequestEventBusShouldReturnTheSameInstance() throws Exception { RequestEventBus eventBus = requestEventBus.createRequestEventBus(); assertSame(eventBus, requestEventBus); }
@Override public RequestEventBus createRequestEventBus() { return this; }
NoopRequestEventBus implements RequestEventBus { @Override public RequestEventBus createRequestEventBus() { return this; } }
NoopRequestEventBus implements RequestEventBus { @Override public RequestEventBus createRequestEventBus() { return this; }  }
NoopRequestEventBus implements RequestEventBus { @Override public RequestEventBus createRequestEventBus() { return this; }  @Override void subscribe(Event1<T> event, EventBusCallback1<T> callback); @Override void subscribe(Event2<T1, T2> event, EventBusCallback2<T1, T2> callback); @Override void subscribePermanently(Event1<T> event, EventBusCallback1<T> callback); @Override void subscribePermanently(Event2<T1, T2> event, EventBusCallback2<T1, T2> callback); @Override void triggerEvent(Event1<T> event, T payload); @Override void triggerEvent(Event1<Void> event); @Override void triggerEvent(Event2<T1, T2> event, T1 payload1, T2 payload2); @Override RequestEventBus createRequestEventBus(); }
NoopRequestEventBus implements RequestEventBus { @Override public RequestEventBus createRequestEventBus() { return this; }  @Override void subscribe(Event1<T> event, EventBusCallback1<T> callback); @Override void subscribe(Event2<T1, T2> event, EventBusCallback2<T1, T2> callback); @Override void subscribePermanently(Event1<T> event, EventBusCallback1<T> callback); @Override void subscribePermanently(Event2<T1, T2> event, EventBusCallback2<T1, T2> callback); @Override void triggerEvent(Event1<T> event, T payload); @Override void triggerEvent(Event1<Void> event); @Override void triggerEvent(Event2<T1, T2> event, T1 payload1, T2 payload2); @Override RequestEventBus createRequestEventBus();  }