public RabbitTestMessageBus(ConnectionFactory connectionFactory) {
this.rabbitAdmin = new RabbitAdmin(connectionFactory);
}
public RabbitTestMessageBus(ConnectionFactory connectionFactory, MultiTypeCodec<Object> codec) {
RabbitMessageBus messageBus = new RabbitMessageBus(connectionFactory, codec);
GenericApplicationContext context = new GenericApplicationContext();
context.refresh();
messageBus.setApplicationContext(context);
this.setMessageBus(messageBus);
this.rabbitAdmin = new RabbitAdmin(connectionFactory);
}