### Question:
VariablesEditorWidgetViewImpl extends Composite implements VariablesEditorWidgetView,
                                                                        HasValue<String> { protected void checkTagsNotEnabled() { if (tagsDisabled) { tagsth.removeFromParent(); for (int i = 0; i < getVariableRowsCount(); i++) { getVariableWidget(i).setTagsNotEnabled(); } } }  void setTagsth(TableCellElement tagsth); void setTagsDisabled(boolean tagsDisabled); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); boolean isDuplicateName(final String name); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getVariableRowsCount(); @Override void setTableDisplayStyle(); @Override void setNoneDisplayStyle(); @Override void setVariableRows(final List<VariableRow> rows); @Override List<VariableRow> getVariableRows(); @Override VariableListItemWidgetView getVariableWidget(final int index); @Override void setVariablesDataTypes(final ListBoxValues dataTypeListBoxValues); @EventHandler("addVarButton") void handleAddVarButton(final ClickEvent e); void removeVariable(final VariableRow variableRow); @Override void setTagsNotEnabled();  }### Answer:
@Test public void testCheckTagsNotEnabled() { view.setTagsDisabled(false); view.checkTagsNotEnabled(); verify(tagsth, never()).removeFromParent(); view.setTagsDisabled(true); view.checkTagsNotEnabled(); verify(tagsth, times(1)).removeFromParent(); }