### Question:
DefaultPluginManager implements PluginController, PluginAccessor, PluginSystemLifecycle { public Class<?> getDynamicPluginClass(final String className) throws ClassNotFoundException { return getClassLoader().loadClass(className); } DefaultPluginManager(final PluginPersistentStateStore store, final List<PluginLoader> pluginLoaders, final ModuleDescriptorFactory moduleDescriptorFactory,
                                final PluginEventManager pluginEventManager); void init(); void shutdown(); final void warmRestart(); @PluginEventListener void onPluginModuleAvailable(PluginModuleAvailableEvent event); @PluginEventListener void onPluginModuleUnavailable(PluginModuleUnavailableEvent event); @PluginEventListener void onPluginContainerUnavailable(PluginContainerUnavailableEvent event); @PluginEventListener void onPluginRefresh(final PluginRefreshedEvent event); void setPluginInstaller(final PluginInstaller pluginInstaller); String installPlugin(final PluginArtifact pluginArtifact); Set<String> installPlugins(final PluginArtifact... pluginArtifacts); int scanForNewPlugins(); void uninstall(final Plugin plugin); void revertRestartRequiredChange(final String pluginKey); Collection<Plugin> getPlugins(); Collection<Plugin> getPlugins(final PluginPredicate pluginPredicate); Collection<Plugin> getEnabledPlugins(); Collection<M> getModules(final ModuleDescriptorPredicate<M> moduleDescriptorPredicate); Collection<ModuleDescriptor<M>> getModuleDescriptors(final ModuleDescriptorPredicate<M> moduleDescriptorPredicate); Plugin getPlugin(final String key); Plugin getEnabledPlugin(final String pluginKey); ModuleDescriptor<?> getPluginModule(final String completeKey); ModuleDescriptor<?> getEnabledPluginModule(final String completeKey); List<M> getEnabledModulesByClass(final Class<M> moduleClass); @Deprecated List<M> getEnabledModulesByClassAndDescriptor(final Class<ModuleDescriptor<M>>[] descriptorClasses, final Class<M> moduleClass); @Deprecated List<M> getEnabledModulesByClassAndDescriptor(final Class<ModuleDescriptor<M>> descriptorClass, final Class<M> moduleClass); List<D> getEnabledModuleDescriptorsByClass(final Class<D> descriptorClazz); List<D> getEnabledModuleDescriptorsByClass(final Class<D> descriptorClazz, final boolean verbose); @Deprecated List<ModuleDescriptor<M>> getEnabledModuleDescriptorsByType(final String type); void enablePlugins(final String... keys); @Deprecated void enablePlugin(final String key); void disablePlugin(final String key); void disablePluginWithoutPersisting(final String key); void disablePluginModule(final String completeKey); void enablePluginModule(final String completeKey); boolean isPluginModuleEnabled(final String completeKey); boolean isPluginEnabled(final String key); InputStream getDynamicResourceAsStream(final String name); Class<?> getDynamicPluginClass(final String className); PluginsClassLoader getClassLoader(); InputStream getPluginResourceAsStream(final String pluginKey, final String resourcePath); boolean isSystemPlugin(final String key); PluginRestartState getPluginRestartState(final String key); @Deprecated void setDescriptorParserFactory(final DescriptorParserFactory descriptorParserFactory);  }### Answer:
@Ignore @Test public void testGetDynamicPluginClass() throws IOException, PluginParseException { createFillAndCleanTempPluginDirectory(); final DefaultPluginManager manager = makeClassLoadingPluginManager(); try { manager.getDynamicPluginClass("org.maera.plugin.mock.MockPooh"); } catch (final ClassNotFoundException e) { fail(e.getMessage()); } }