@Test
public void testRegistersItselfAsResizeListenerWithItem() {
ToolBar toolBar = new ToolBar( shell, SWT.NONE );
ToolItem toolItem = new ToolItem( toolBar, SWT.NONE );
Color color = shell.getDisplay().getSystemColor( SWT.COLOR_BLUE );
Rule rule = PassePartout.when( new AlwaysTrueContidtion() ).then( new ForegroundInstruction( color ) );
ResourceImpl resource = new ResourceImpl( rule );
resource.bindTo( toolItem );
boolean hasListener = hasResizeListener( resource );