" add(panel_2);",
" }",
" }",
"}");
// layout
CardLayoutInfo layout = (CardLayoutInfo) panel.getChildrenJava().get(0);
assertSame(layout, panel.getLayout());
// set active item
Property activeItemProperty = layout.getPropertyByTitle("activeItem(int)");
activeItemProperty.setValue(1);
// check source
assertEditor(
"public class Test extends Panel {",
" public Test() {",