  @Test
  public void testSetFirst() throws Exception {

    List<ExternalTaskExecutionInfo> tasks = ContainerUtilRt.newArrayList();
    for (int i = 0; i <= ExternalSystemConstants.RECENT_TASKS_NUMBER; i++) {
      new ExternalTaskExecutionInfo(new ExternalSystemTaskExecutionSettings(), "task" + i);
    }
    myModel.setTasks(tasks);

    myModel.setFirst(new ExternalTaskExecutionInfo(new ExternalSystemTaskExecutionSettings(), "newTask"));

    Assert.assertEquals(ExternalSystemConstants.RECENT_TASKS_NUMBER, myModel.getSize());
    myModel.setFirst(new ExternalTaskExecutionInfo(new ExternalSystemTaskExecutionSettings(), "task1"));
    Assert.assertEquals(ExternalSystemConstants.RECENT_TASKS_NUMBER, myModel.getSize());
  }