@Test
  public void testStopDownloadShouldReturnConflictWhenDownloadNotStarted() throws Exception {
    doThrow(new DownloadNotStartedException()).when(mockFacade).stopDownload();

    Response result = service.stopDownload("id");
    assertEquals(result.getStatus(), Response.Status.CONFLICT.getStatusCode());
  }
 @Test
 public void testStopDownload() throws Exception {
   Response result = service.stopDownload("id");
   assertEquals(result.getStatus(), Response.Status.NO_CONTENT.getStatusCode());
 }