}
@Test
public void remove_ByIndex() {
// Arrange
ComplexPanel panel = new FlowPanel();
Button b0 = new Button();
panel.add(b0);
Button b1 = new Button();
panel.add(b1);
// Act
panel.remove(1);
// Assert
assertEquals(1, panel.getWidgetCount());
assertEquals(b0, panel.getWidget(0));
assertEquals(panel, b0.getParent());
assertNull(b1.getParent());
}