@Test
public void testAddDomainLinks() throws Exception {

    List<DomainLink> domainLinks = new ArrayList<>();
    DomainURL domain1 = new DomainURL("d1", "n1");
    domainLinks.add(new DomainLink(domain1, new SimpleURL("url1", "n1", "new")));
    domainLinks.add(new DomainLink(domain1, new SimpleURL("url2", "n2", "new")));
    DomainURL domain2 = new DomainURL("d2", "n2");
    domainLinks.add(new DomainLink(domain2, new SimpleURL("url3", "n1", "new")));
    domainLinks.add(new DomainLink(domain2, new SimpleURL("url4", "n2", "new")));
    service.addDomainLinks(domainLinks);
    assertEquals(4, urlRepo.count());
    assertEquals(2, domainRepo.count());
}