### Question:
DefaultPluginStateResolver implements InternalPluginStateResolver { @Override public boolean isEnabled(final String pluginIdentifier) { return isEnabled(getPlugin(pluginIdentifier)); }  @Override void setPluginAccessor(final PluginAccessor pluginAccessor); @Override boolean isEnabled(final String pluginIdentifier); @Override boolean isEnabled(final Plugin plugin); @Deprecated @Override boolean isEnabledOrEnabling(final String pluginIdentifier); @Deprecated @Override boolean isEnabledOrEnabling(final Plugin plugin);  }### Answer:
@Test public final void shouldIsEnabledReturnFalseIfPluginDoesNotExist() throws Exception { boolean isEnabled = stateResolverImpl.isEnabled("phantomPlugin"); assertFalse(isEnabled); }
@Test public final void shouldIsEnabledReturnTrue() throws Exception { setMockPluginEnabled(); boolean isEnabled = stateResolverImpl.isEnabled(PLUGIN_IDENTIFIER); assertTrue(isEnabled); }
@Test public final void shouldIsEnabledReturnFalse() throws Exception { setMockPluginDisabled(); boolean isEnabled = stateResolverImpl.isEnabled(PLUGIN_IDENTIFIER); assertFalse(isEnabled); }