@Test
public void testCloseConnection() throws Exception {

	Assume.assumeTrue( rabbitMqIsRunning );
	Channel channel = RabbitMqTestUtils.createTestChannel();
	Assert.assertTrue( channel.isOpen());
	Assert.assertTrue( channel.getConnection().isOpen());
	// Close it
	RabbitMqUtils.closeConnection( channel );
	Assert.assertFalse( channel.isOpen());
	Assert.assertFalse( channel.getConnection().isOpen());
	// Make sure closing an already closed channel does not throw an exception
	RabbitMqUtils.closeConnection( channel );
	Assert.assertFalse( channel.isOpen());
	Assert.assertFalse( channel.getConnection().isOpen());
}