/**
* @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
*/
public void afterPropertiesSet() throws Exception {
if (endpointAdapter == null) {
ChannelSyncEndpointConfiguration channelEndpointConfiguration = new ChannelSyncEndpointConfiguration();
channelEndpointConfiguration.setChannelName(getName() + DEFAULT_CHANNEL_ID_SUFFIX);
channelEndpointConfiguration.setBeanFactory(getBeanFactory());
channelEndpointConfiguration.setTimeout(defaultTimeout);
channelEndpointConfiguration.setUseObjectMessages(true);
endpointAdapter = new ChannelEndpointAdapter(channelEndpointConfiguration);
endpointAdapter.getEndpoint().setName(getName());
((AbstractEndpointAdapter)endpointAdapter).setTestContextFactory(testContextFactory);
}