public void test_991_DeleteTaskList()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = searchTaskList(UPD_TASKLIST_NAME);
     assertNotNull(taskList);
     LocalTaskList localTaskList = dbHandler.getTaskListByGoogleId(taskList.getId());
     dbHandler.deleteTaskListFinal(localTaskList.getInternalId());
     apiManager.deleteTaskList(taskList.getId());
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }
 public void test_101_AddTasklistForSync()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = apiManager.insertTaskList(NEW_TASKLIST_NAME);
     syncManager.execute();
     syncManager.get(1000, TimeUnit.DAYS);
     LocalTaskList localTaskList = dbHandler.getTaskListByGoogleId(taskList.getId());
     assertNotNull(localTaskList);
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }
 public void test_102_UpdateTaskListForSync()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = searchTaskList(NEW_TASKLIST_NAME);
     assertNotNull(taskList);
     taskList.setTitle(UPD_TASKLIST_NAME);
     taskList = apiManager.updateTaskList(taskList.getId(), taskList);
     syncManager.execute();
     syncManager.get(1000, TimeUnit.DAYS);
     LocalTaskList localTaskList = dbHandler.getTaskListByGoogleId(taskList.getId());
     assertEquals(localTaskList.getTitle(), taskList.getTitle());
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }
 public void test_201_AddTaskForSync()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = searchTaskList(UPD_TASKLIST_NAME);
     assertNotNull(taskList);
     Task task = new Task();
     task.setTitle(NEW_TASK_NAME);
     task = apiManager.insertTask(taskList.getId(), task);
     syncManager.execute();
     syncManager.get(1000, TimeUnit.DAYS);
     LocalTask localTask = dbHandler.getTaskByGoogleId(task.getId());
     assertNotNull(localTask);
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }