env.addActiveProfile("advancedAdmin");
env.addActiveProfile("basic");
context.setEnvironment(env);
context.refresh();
context.getBean(CachingConnectionFactory.class).createConnection();
context.destroy();
Channel channel = this.connectionFactory.createConnection().createChannel(false);
channel.queueDeclarePassive("mismatch.bar");
this.admin.deleteQueue("mismatch.bar");
assertNotNull(this.admin.getQueueProperties("mismatch.foo"));
assertNull(this.admin.getQueueProperties("mismatch.bar"));