LayoutEditorPresenter { public void loadLayout(LayoutTemplate layoutTemplate, String emptyTitleText, String emptySubTitleText) { view.setDesignStyle(layoutTemplate.getStyle()); container.load(layoutTemplate, emptyTitleText, emptySubTitleText); } @Inject  LayoutEditorPresenter(final View view,
                                 Container container,
                                 LayoutGenerator layoutGenerator); void setup(Supplier<Boolean> lockSupplier); @PostConstruct void initNew(); void setPreviewEnabled(boolean previewEnabled); void setElementSelectionEnabled(boolean enabled); void clear(); UberElement<LayoutEditorPresenter> getView(); LayoutTemplate getLayout(); void loadLayout(LayoutTemplate layoutTemplate,
                           String emptyTitleText,
                           String emptySubTitleText); void loadEmptyLayout(String layoutName,
                                String emptyTitleText,
                                String emptySubTitleText); void addLayoutProperty(String key,
                                  String value); String getLayoutProperty(String key); void setPageStyle(LayoutTemplate.Style pageStyle); void switchToDesignMode(); void switchToPreviewMode(); List<LayoutEditorElement> getLayoutElements(); void visit(LayoutElementVisitor visitor);  }
@Test public void testLoadLayout() { presenter.loadLayout(testTemplate, EMPTY_TITLE_TEXT, EMPTY_SUB_TITLE_TEXT); verify(container).load(testTemplate, EMPTY_TITLE_TEXT, EMPTY_SUB_TITLE_TEXT); }