public void testDefaultCreateComponentForTransportAuthenticationProviderByService() throws Exception {
DefaultReplicationComponentFactory defaultReplicationComponentFactory = new DefaultReplicationComponentFactory();
String name = "sample-auth";
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("name", name);
ReplicationComponentProvider provider = mock(ReplicationComponentProvider.class);
TransportAuthenticationProvider authenticationProvider = mock(TransportAuthenticationProvider.class);
when(provider.getComponent(TransportAuthenticationProvider.class, name)).thenReturn(authenticationProvider);
TransportAuthenticationProvider component = defaultReplicationComponentFactory.createComponent(TransportAuthenticationProvider.class, properties, provider);
assertNotNull(component);
}