### Question:
PluginHookService { public boolean isMultiverseAvailable() { return multiverse != null; } @Inject  PluginHookService(PluginManager pluginManager); void setEssentialsSocialSpyStatus(Player player, boolean socialSpyStatus); File getEssentialsDataFolder(); File getCmiDataFolder(); Location getMultiverseSpawn(World world); boolean isEssentialsAvailable(); boolean isCmiAvailable(); boolean isMultiverseAvailable(); void tryHookToEssentials(); void tryHookToCmi(); void tryHookToMultiverse(); void unhookEssentials(); void unhookCmi(); void unhookMultiverse();  }### Answer:
@Test public void shouldHookIntoMultiverseAtInitialization() { PluginManager pluginManager = mock(PluginManager.class); setPluginAvailable(pluginManager, MULTIVERSE, MultiverseCore.class); PluginHookService pluginHookService = new PluginHookService(pluginManager); assertThat(pluginHookService.isMultiverseAvailable(), equalTo(true)); }