### Question:
ActivityDataIOEditorWidgetViewImpl extends Composite implements ActivityDataIOEditorWidgetView { @Override public void setAssignmentRows(final List<AssignmentRow> rows) { assignments.setValue(rows); setReadOnly(readOnly); }  @Override void init(final Presenter presenter); @Override void showOnlySingleEntryAllowed(); @Override int getAssignmentsCount(); @Override void setTableTitleInputSingle(); @Override void setTableTitleInputMultiple(); @Override void setTableTitleOutputSingle(); @Override void setTableTitleOutputMultiple(); @Override void setProcessVarAsSource(); @Override void setProcessVarAsTarget(); @Override void setTableDisplayStyle(); @Override void setNoneDisplayStyle(); @Override void setAssignmentRows(final List<AssignmentRow> rows); @Override List<AssignmentRow> getAssignmentRows(); @Override AssignmentListItemWidgetView getAssignmentWidget(final int index); @Override void setReadOnly(final boolean readOnly); @EventHandler("addVarButton") void handleAddVarButton(final ClickEvent e);  }### Answer:
@Test public void testAssignmentsRowsSameSourceAndTarget() { view.setAssignmentRows(rows); verify(assignments, times(1)).setValue(captor.capture()); assertEquals(2, captor.getValue().size()); assertEquals("varName", captor.getValue().get(0).getName()); assertEquals("varName", captor.getValue().get(0).getProcessVar()); assertEquals("varName2", captor.getValue().get(1).getName()); assertEquals("varName2", captor.getValue().get(1).getProcessVar()); }