Move Producer and Consumer instantiation tests to separate classes.
Extract out the connection/channel instantiation codes into a factory.