@Test
public void shouldAttachItSelfToToolkit() {
ToolkitStub toolkit = newToolkitStub();
monitor.attachTo(toolkit);
List<WeakEventListener> eventListeners = toolkit.eventListenersUnderEventMask(EVENT_MASK, WeakEventListener.class);
assertThat(eventListeners).hasSize(1);
WeakEventListener weakEventListener = eventListeners.get(0);
assertThat(weakEventListener.underlyingListener()).isSameAs(monitor);
}