private void addFloatingTasks(State state, AddTask addTask, int a) {
   state.setIsEndDateChanged(false);
   for (int i = 0; i < a; i++) {
     addTask.process();
   }
   assertEquals(a, state.getAllTasks().size());
   assertEquals(a, state.getFloatingTasks().size());
 }
  private void addDeadlineTasks(State state, AddTask addTask, int a) {
    state.setIsEndDateChanged(true);
    state.setEndDate(new Date(System.currentTimeMillis()));

    for (int i = 0; i < a; i++) {
      addTask.process();
    }
    assertEquals(a, state.getDeadlineTasks().size());
    assertEquals(a, state.getAllTasks().size());
  }