" Button button = new Button();",
" add(button, new HBoxLayoutData(1, 2, 3, 4));",
" }",
" }",
"}");
container.refresh();
WidgetInfo button = container.getWidgets().get(0);
HBoxLayoutDataInfo boxData = HBoxLayoutInfo.getHBoxData(button);
// check margins
assertEquals(1, boxData.getPropertyByTitle("margin-top").getValue());
assertEquals(2, boxData.getPropertyByTitle("margin-right").getValue());