public void setMessageBus(C messageBus) {
		messageBus.setIntegrationEvaluationContext(new StandardEvaluationContext());
		try {
			messageBus.afterPropertiesSet();
		}
		catch (Exception e) {
			throw new RuntimeException("Failed to initialize message bus", e);
		}
		this.messageBus = messageBus;
	}
Abstract class that adds test support for {@link MessageBus}.

@author Ilayaperumal Gopinathan
@author Gary Russell
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/integration/bus/AbstractTestMessageBus.java