AlarmModuleProvider extends ModuleProvider { @Override public void notifyAfterCompleted() throws ServiceNotProvidedException, ModuleStartException { }  @Override String name(); @Override Class<? extends ModuleDefine> module(); @Override ModuleConfig createConfigBeanIfAbsent(); @Override void prepare(); @Override void start(); @Override void notifyAfterCompleted(); @Override String[] requiredModules();  }
@Test public void notifyAfterCompleted() throws Exception { NotifyHandler handler = mock(NotifyHandler.class); Whitebox.setInternalState(moduleProvider, "notifyHandler", handler); moduleProvider.notifyAfterCompleted(); }