### Question:
PastebinTask extends BackgroundTask { public String getPasteUrl() { return uploader.getResponse().pasteUrl.toString(); } PastebinTask(ProjectUploader uploader, String path, String pasteMessage, ProjectDAO projectDAO,
            IdeUIInvoker invoker); @Override int start(TaskStatusMonitor progress); String getPasteUrl();  }### Answer:
@Test public void getPasteUrlReturnsTheUrlFromTheResponse() throws URISyntaxException { SubmissionResponse response = new SubmissionResponse(new URI("submission"), new URI("paste")); when(uploader.getResponse()).thenReturn(response); assertEquals("paste", task.getPasteUrl()); }