PluginLoader pluginLoader = mock(PluginLoader.class);
when(pluginLoader.load(pluginPack1)).thenReturn(plugin1);
when(pluginLoader.load(pluginPack2)).thenReturn(plugin2);
bus = new MockBus();
pluginManager = new DefaultPluginManager(pluginLoader, pluginPackFactory, bus);
}