public void setUp() throws Exception
{
super.setUp();
_broker = BrokerTestHelper.createBrokerMock();
AuthenticationProvider dummyAuthProvider = mock(AuthenticationProvider.class);
when(dummyAuthProvider.getName()).thenReturn("dummy");
when(dummyAuthProvider.getId()).thenReturn(UUID.randomUUID());
when(_broker.getChildren(eq(AuthenticationProvider.class))).thenReturn(Collections.singleton(dummyAuthProvider));
_vhosts = new HashMap<>();
for(String name : new String[] { "red", "blue", "purple", "black" })
{
_vhosts.put(name, BrokerTestHelper.createVirtualHost(name, _broker));