### Question:
Dashboard extends VerticalLayout { public void addPage(String pageName) { final HorizontalLayout newLayout = new HorizontalLayout(); DragAndDropWrapper layoutWrapper = new DragAndDropWrapper(newLayout); setDropHandler(newLayout, layoutWrapper); tabs.add(layoutWrapper); pageContentArea.addTab(layoutWrapper, pageName); pageContentArea.setSelectedTab(layoutWrapper); pageWidgets.add (new ArrayList<IWidget> ()); removePageBtn.setEnabled(true); } Dashboard(AbstractRainbowVaadinUI rui); void addPage(String pageName); void setPage(int pageId); void removePage(int pageId); void loadViewConfiguration(); void saveViewConfiguration(); void resetDashboard();  }### Answer:
@Test public void addPage() { dashboard.newPageBtn.click(); dashboard.txtPageName.setValue("Test"); dashboard.btnCreate.click(); assertEquals(dashboard.tabs.size(), 2); boolean test = false; for (int i = 0; i < dashboard.pageContentArea.getComponentCount(); i++) { if (dashboard.pageContentArea.getTab(i).getCaption().equals("Test")) { test = true; } } assertEquals(test, true); }