### Question:
MaeraPlugins { public void start() throws PluginParseException { pluginManager.init(); if (hotDeployer != null && !hotDeployer.isRunning()) { hotDeployer.start(); } } MaeraPlugins(PluginsConfiguration config); void start(); void stop(); OsgiContainerManager getOsgiContainerManager(); PluginEventManager getPluginEventManager(); PluginController getPluginController(); PluginAccessor getPluginAccessor(); static final String TEMP_DIRECTORY_SUFFIX; }### Answer:
@Test public void testStart() throws Exception { new PluginJarBuilder().addPluginInformation("mykey", "mykey", "1.0").build(pluginDir); final PluginsConfiguration config = pluginsConfiguration() .pluginDirectory(pluginDir) .packageScannerConfiguration( new PackageScannerConfigurationBuilder() .packagesToInclude("org.apache.*", "org.maera.*", "org.dom4j*") .packagesVersions(Collections.singletonMap("org.apache.commons.logging", "1.1.1")) .build()) .build(); plugins = new MaeraPlugins(config); plugins.start(); assertEquals(1, plugins.getPluginAccessor().getPlugins().size()); }