// Get a managedConnection
ManagedConnection mangedConnection = _jmxUtils.getManagedObject(ManagedConnection.class, "org.apache.qpid:type=VirtualHost.Connection,*");
//Close the connection
mangedConnection.closeConnection();
//Wait for the connection to close
assertTrue("Timed out waiting for conneciton to report close",
exceptionReceived.await(2, TimeUnit.SECONDS));