testMenu2.add( new MenuItem( "Yellow", new ChangeColorAction( "Yellow") ));
testMenu2.add( new MenuItem( "Green", new ChangeColorAction( "Green") ));
testMenu2.add( new MenuItem( "Blue", new ChangeColorAction( "Blue") ));
YuiContextMenuBehavior cmBehavior = new YuiContextMenuBehavior(testMenu1, testMenu2);
WebMarkupContainer markup =new WebMarkupContainer( "panel" );
markup.setOutputMarkupId(true);
cmBehavior.applyAttributes( markup, testMenu1, new Model( "123") );
subPanel = new WebMarkupContainer( "subPanel" );
subPanel.setOutputMarkupId(true);
cmBehavior.applyAttributes( subPanel, testMenu2, new Model( "777") );
markup.add( subPanel );
add( markup );
markup.add( cmBehavior );