public static VirtualHost createVirtualHost(VirtualHostConfiguration virtualHostConfiguration, VirtualHostRegistry virtualHostRegistry, org.apache.qpid.server.model.VirtualHost modelVHost)
throws Exception
{
StatisticsGatherer statisticsGatherer = mock(StatisticsGatherer.class);
final VirtualHostFactory factory =
virtualHostConfiguration == null ? new StandardVirtualHostFactory()
: VirtualHostFactory.FACTORIES.get(virtualHostConfiguration.getType());
VirtualHost host = factory.createVirtualHost(virtualHostRegistry,
statisticsGatherer,
new SecurityManager(mock(Broker.class), false),
virtualHostConfiguration,