@Test
public void removeTabpanelTest() throws Exception {

  XulTabpanels panels = (XulTabpanels) doc.getElementById( "tabpanels" );
  XulTabpanel panel = (XulTabpanel) doc.getElementById( "panel3" );
  panels.removeChild( panel );
  assertEquals( 3, panels.getChildNodes().size() );
}