RequestsBeingExecuted { @Override public String toString() { return events.toString(); } RequestsBeingExecuted(@Qualifier("microserverEventBus") EventBus bus);  RequestsBeingExecuted(EventBus bus, String type); int events(); int size(); @Override String toString();  }
@Test public void testToString() { bus.post(RequestEvents.start("data", "100")); bus.post(RequestEvents.start("data", "120")); bus.post(RequestEvents.finish("data", "120")); assertThat(requests.toString(), containsString("\"removed\":1")); assertThat(requests.toString(), containsString("\"added\":2")); }