void () { myTaskManager.getState().trackContextForNewChangelist = true; addChangeList("New Changelist"); assertEquals(2, myTaskManager.getLocalTasks().size()); assertEquals(2, myChangeListManager.getChangeLists().size()); LocalChangeList newChangeList = myChangeListManager.findChangeList("New Changelist"); assertNotNull(newChangeList); LocalTask newTask = myTaskManager.getAssociatedTask(newChangeList); assertNotNull(newTask); assertEquals("New Changelist", newTask.getSummary()); myTaskManager.getState().trackContextForNewChangelist = false; }