*/
public class RemoteEventReplicationTriggerTest {
@Test
public void testRegister() throws Exception {
ReplicationRequestHandler handler = mock(ReplicationRequestHandler.class);
String endpoint = "";
TransportAuthenticationProvider<CredentialsProvider, CredentialsProvider> authProvider = mock(TransportAuthenticationProvider.class);
when(authProvider.canAuthenticate(CredentialsProvider.class)).thenReturn(true);
Scheduler scheduler = mock(Scheduler.class);
ScheduleOptions options = mock(ScheduleOptions.class);
when(options.name(handler.toString())).thenReturn(options);
when(scheduler.NOW()).thenReturn(options);
RemoteEventReplicationTrigger remoteEventReplicationTrigger = new RemoteEventReplicationTrigger(
endpoint, authProvider, scheduler);
remoteEventReplicationTrigger.register(handler);
}