LayoutEditorPluginImpl implements LayoutEditorPlugin { @Override public void lock() { locked = true; }  @PostConstruct void setup(); @Override void init(String layoutName,
                     String emptyTitleText,
                     String emptySubTitleText,
                     LayoutTemplate.Style style); @Override void clear(); @Override Widget asWidget(); @Override void loadLayout(LayoutTemplate layoutTemplate); @Override void loadDefaultLayout(String layoutName); @Override LayoutTemplate getLayout(); @Override void addLayoutProperty(String key,
                                  String value); @Override String getLayoutProperty(String key); @Override void setPreviewEnabled(boolean enabled); @Override void setElementSelectionEnabled(boolean enabled); @Override void load(Path currentPath,
                     Command loadCallBack); @Override void save(final Path path,
                     final RemoteCallback<Path> saveSuccessCallback); @Override List<LayoutEditorElement> getLayoutElements(); @Override void visit(LayoutElementVisitor visitor); boolean isLocked(); @Override void lock(); @Override void unlock();  }
@Test public void testLock() { layoutEditorPlugin.lock(); Assert.assertTrue(layoutEditorPlugin.isLocked()); }