### Question:
ScriptTypeListFieldEditorPresenter extends FieldEditorPresenter<ScriptTypeListValue> { public void setMode(ScriptTypeMode mode) { scriptTypePresenter.setMode(mode); } @Inject  ScriptTypeListFieldEditorPresenter(final ScriptTypeFieldEditorPresenter scriptTypePresenter); @PostConstruct void init(); IsElement getView(); @Override void setValue(ScriptTypeListValue value); void setMode(ScriptTypeMode mode); @Override void setReadOnly(boolean readOnly);  }### Answer:
@Test public void testSetMode() { Arrays.stream(ScriptTypeMode.values()).forEach(mode -> { editor.setMode(mode); verify(scriptTypePresenter, times(1)).setMode(mode); }); }