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 );