public void testOnConnectAndOnDisconnectCallbackDelegation() {
when(scheduler.scheduleAtFixedRate(same(task), eq(0L), eq(5000L), same(TimeUnit.MILLISECONDS))).thenReturn(future);
manager.start(5000L);
DuplexChannel channel = mock(DuplexChannel.class);
ArgumentCaptor<ConnectCallback> captor = ArgumentCaptor.forClass(ConnectCallback.class);
verify(factory).newInstance(captor.capture(), same(config));