protected Collection<?> getBindings(MessageBus testMessageBus) {
		if (testMessageBus instanceof AbstractTestMessageBus) {
			return getBindingsFromMsgBus(((AbstractTestMessageBus) testMessageBus).getCoreMessageBus());
		}
		else if (testMessageBus instanceof LocalMessageBus) {
			return getBindingsFromMsgBus(testMessageBus);
		}
		return Collections.EMPTY_LIST;
	}
@author Gary Russell
@author Ilayaperumal Gopinathan
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/integration/bus/AbstractMessageBusTests.java