@Test
public void testNotify() throws Exception {

    new Expectations() {
        {
            mockCtx.getConfig();
            times = 3;
            result = mockNotifierConfig;
            mockNotifierConfig.getClassName();
            times = 1;
            result = "Test";
            mockNotifierConfig.getJarPath();
            times = 1;
            result = "/tmp/test.jar";
            mockProxyUtil.loadClassFromJar("/tmp/test.jar", "Test");
            result = mockNotifier;
            mockNotification.getId(); times = 1;
            result = "123";
        }
    };
    notificationService.register("test_notifier", mockCtx);
    Future<?> res = notificationService.notify("test_notifier", mockNotification);
    res.get(5, TimeUnit.SECONDS);
    new Verifications() {
        {
            mockNotificationStore.store(mockNotification);
            times = 1;
            mockNotifier.notify(mockNotification);
            times = 1;
        }
    };
}