public void setUp() {
directory = mock(Directory.class);
plugin1 = mock(Plugin.class);
plugin2 = mock(Plugin.class);
Directory pluginDirectory1 = mock(Directory.class);
Directory pluginDirectory2 = mock(Directory.class);
when(directory.subdirs()).thenReturn(asList(pluginDirectory1, pluginDirectory2));
PluginPackFactory pluginPackFactory = mock(PluginPackFactory.class);
PluginPack pluginPack1 = mock(PluginPack.class);
PluginPack pluginPack2 = mock(PluginPack.class);