@Test
public void testRegister() throws Exception {

    //test one url
    abstractRegistry.register(mockUrl);
    assert abstractRegistry.getRegistered().contains(mockUrl);
    //test multiple urls
    for (URL url : abstractRegistry.getRegistered()) {
        abstractRegistry.unregister(url);
    }
    List<URL> urlList = getList();
    for (URL url : urlList) {
        abstractRegistry.register(url);
    }
    MatcherAssert.assertThat(abstractRegistry.getRegistered().size(), Matchers.equalTo(urlList.size()));
}