" canvas.addChild(menuButton);",
" canvas.draw();",
" }",
"}"});
canvas.refresh();
MenuButtonInfo menuButton = canvas.getChildren(MenuButtonInfo.class).get(0);
//
MenuInfo menu = menuButton.getMenu();
assertThat(menu).isNotNull();
assertThat(menu.getItems().size()).isEqualTo(1);
}