source: class MongoUrlServiceImplTest  {
  
      private MongoCollection domainRepo;
      private MongoCollection urlRepo;
      private MongoUrlServiceImpl service;
      private static MetricsConfig metricsConfig;
  
      @Test
      public void testAddSimpleUrls() throws Exception {
  
target:         List<String> urls = Arrays.asList("someURL1", "someURL2", "someURL3");
          service.addSimpleUrls(urls, "NEW", "site.com", "origin.com");
  
          assertEquals(3, urlRepo.count());
          Iterable<MongoSimpleURL> actual = urlRepo.find("{domain: #}", "site.com").as(MongoSimpleURL.class);
          List<String> urlsFound = new ArrayList<>();
          for (MongoSimpleURL crtActual : actual) {
              assertEquals("site.com", crtActual.getDomain());
              urlsFound.add(crtActual.getUrl());
          }
          assertTrue(urlsFound.containsAll(urls));
      }
  
  }