void () { LocalTaskImpl task = new LocalTaskImpl("foo-bar-001", "summary") { @Override public TaskRepository getRepository() { return myRepository; } @Override public boolean isIssue() { return true; } }; assertEquals("foo-bar", task.getProject()); assertEquals("001", task.getNumber()); String name = myTaskManager.getChangelistName(task); assertEquals("foo-bar-001 summary", name); }