  @Test public void testDuplicate() throws Exception {

    int downloadId = downloadManager.add(request);
    assertEquals(1, downloadId);
    int downloadId2 = downloadManager.add(request);
    assertEquals(-1, downloadId2);
  }