@Test
public void testNotifyArgs() throws Exception {

    // check parameters
    try {
        abstractRegistry.notify(null, null, null);
        Assertions.fail();
    } catch (Exception e) {
        Assertions.assertTrue(e instanceof IllegalArgumentException);
    }
    // check parameters
    try {
        abstractRegistry.notify(testUrl, null, null);
        Assertions.fail();
    } catch (Exception e) {
        Assertions.assertTrue(e instanceof IllegalArgumentException);
    }
    // check parameters
    try {
        abstractRegistry.notify(null, listener, null);
        Assertions.fail();
    } catch (Exception e) {
        Assertions.assertTrue(e instanceof IllegalArgumentException);
    }
    Assertions.assertFalse(notifySuccess);
    abstractRegistry.notify(testUrl, listener, null);
    Assertions.assertFalse(notifySuccess);
    List<URL> urls = new ArrayList<>();
    urls.add(testUrl);
    // check if notify successfully
    Assertions.assertFalse(notifySuccess);
    abstractRegistry.notify(testUrl, listener, urls);
    Assertions.assertTrue(notifySuccess);
}