LayoutEditorPresenter { public void setup(Supplier<Boolean> lockSupplier) { container.setLockSupplier(lockSupplier); } @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 testSetup() { Supplier<Boolean> lockSupplier = () -> false; presenter.setup(lockSupplier); verify(container).setLockSupplier(lockSupplier); }