### Question:
DependencyProvider { public List<Plugin> getDependentPluginsOf(Class<? extends Plugin> pluginClass) { return getDependenciesOf(pluginClass, DependencyType.DEPENDENT); } DependencyProvider(PluginRegistry pluginRegistry, FacetRegistry facetRegistry); List<Plugin> getDependenciesOf(Class<? extends Plugin> pluginClass); List<Plugin> getRequiredPluginsOf(Class<? extends Plugin> pluginClass); List<Plugin> getDependentPluginsOf(Class<? extends Plugin> pluginClass); List<T> getFacets(Class<? extends Plugin> pluginClass, Class<T> facet); T getFacet(Class<? extends Plugin> pluginClass, Class<T> facet);  }### Answer:
@Test public void test_provide_missing_dependent_dependencies() { List<Plugin> dependencies = underTest.getDependentPluginsOf(NoDepsPlugin.class); Assertions.assertThat(dependencies).isNotNull(); }
@Test public void test_provide_dependent_dependencies() { List<Plugin> dependencies = underTest.getDependentPluginsOf(WithDepsPlugin.class); Assertions.assertThat(dependencies).hasSize(1); Assertions.assertThat(dependencies).containsOnly(dependentPlugin); }