DefaultLongPollingManager implements LongPollingManager { @Override public boolean isLongPollingEnabled() { return configurationService.getBooleanValue(LONG_POLLING_ENABLED_KEY, true); }  @Override void checkDeferredRequests(Class<? extends AbstractDto> type); @Override synchronized void addSuspendedResult(DeferredResultWrapper result); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override void baseCheckDeferredResult(DeferredResult<OperationResultDto> deferredResult,
			LongPollingSubscriber subscriber, ModifiedFromFilter filter,
			ReadDtoService service, boolean checkCount); @Scheduled(fixedDelay = 7200000) // Every two hours void clearUnUseSubscribers(); @Override void clearUnUseSubscribers(ZonedDateTime clearBeforIt); @Override boolean isLongPollingEnabled(); @Override ZonedDateTime getLastTimeStamp(AbstractDto dto); Queue<DeferredResultWrapper> getSuspendedRequests(); Map<UUID, LongPollingSubscriber> getRegistredSubscribers();  }
@Test public void testDisableLongPolling() { assertTrue("Long polling should be enabled by default!", longPollingManager.isLongPollingEnabled()); configurationService.setValue(LongPollingManager.LONG_POLLING_ENABLED_KEY, "false"); assertFalse(longPollingManager.isLongPollingEnabled()); }