JGitFileSystemsEventsManager { JGitEventsBroadcast getjGitEventsBroadcast() { return jGitEventsBroadcast; } JGitFileSystemsEventsManager(); WatchService newWatchService(String fsName); void publishEvents(String fsName,
                              Path watchable,
                              List<WatchEvent<?>> elist); void publishEvents(String fsName,
                              Path watchable,
                              List<WatchEvent<?>> elist,
                              boolean broadcastEvents); void close(String name); void shutdown();  }
@Test public void doNotSetupClusterTest() { JGitFileSystemsEventsManager another = new JGitFileSystemsEventsManager() { @Override ClusterService createClusterJMSService() { return mock(ClusterJMSService.class); } }; assertNull(another.getjGitEventsBroadcast()); }
@Test public void setupClusterTest() { assertNotNull(manager.getjGitEventsBroadcast()); }