/** Tests assignment of all items from the left table to the right. */
  @Test
  public void testMoveAllRight() {
    AssignmentCompositeModel<MyTo> model =
        new AssignmentCompositeModel<MyTo>(Collections.<String>emptyList(), TABLE_ROW_VALUES_LEFT);

    AssignmentCompositeController<MyTo> controller = new AssignmentCompositeController<MyTo>();
    controller.setAssignmentComposite(new AssignmentComposite<MyTo>());
    controller.setAssignmentCompositeModel(model);

    List<IAssignable<MyTo>> tableRowValuesLeft = model.getTableRowValuesLeft();
    Assert.assertEquals(2, tableRowValuesLeft.size());

    List<IAssignable<MyTo>> tableRowValuesRight = model.getTableRowValuesRight();
    Assert.assertEquals(0, tableRowValuesRight.size());

    controller.moveAllRight();

    tableRowValuesLeft = model.getTableRowValuesLeft();
    Assert.assertEquals(0, tableRowValuesLeft.size());

    tableRowValuesRight = model.getTableRowValuesRight();
    Assert.assertEquals(2, tableRowValuesRight.size());
  }