TestRepository (LocalTaskImpl... tasks) { TaskManagerImpl manager = getManager(); TestRepository repository = new TestRepository(tasks); manager.setRepositories(Arrays.asList(repository)); manager.getState().updateEnabled = false; return repository; }