void () { TestRepository repository = new TestRepository(); repository.setUrl("http://server"); myTaskManager.setRepositories(Collections.singletonList(repository)); TaskTestUtil.TaskBuilder issue = new TaskTestUtil.TaskBuilder("foo", "summary", repository).withIssueUrl(repository.getUrl() + "/foo"); myTaskManager.activateTask(issue, false); TaskManagerImpl.Config config = getConfig(); myTaskManager.loadState(config); assertEquals(repository, myTaskManager.getActiveTask().getRepository()); }