JobOperationListenerManager extends AbstractListenerManager { @Override public void start() { addConnectionStateListener(new ConnectionLostListener()); addDataListener(new JobPausedStatusJobListener()); addDataListener(new JobShutdownStatusJobListener()); } JobOperationListenerManager(final CoordinatorRegistryCenter coordinatorRegistryCenter, final JobConfiguration jobConfiguration); @Override void start();  }
@Test public void assertStart() { jobOperationListenerManager.start(); verify(jobNodeStorage).addConnectionStateListener(Matchers.<ConnectionLostListener>any()); verify(jobNodeStorage, times(2)).addDataListener(Matchers.<JobPausedStatusJobListener>any()); }