### Question:
EnabledPluginPredicate implements PluginPredicate { public boolean matches(final Plugin plugin) { return plugin != null && pluginAccessor.isPluginEnabled(plugin.getKey()); } EnabledPluginPredicate(final PluginAccessor pluginAccessor); boolean matches(final Plugin plugin);  }### Answer:
@Test public void testDoesNotMatchDisabledPlugin() { mockPluginAccessor.matchAndReturn("isPluginEnabled", C.eq(TEST_PLUGIN_KEY), false); assertFalse(pluginPredicate.matches(plugin)); }
@Test public void testMatchesEnabledPlugin() { mockPluginAccessor.matchAndReturn("isPluginEnabled", C.eq(TEST_PLUGIN_KEY), true); assertTrue(pluginPredicate.matches(plugin)); }