### Question:
WebHookPluginDataResolverImpl implements WebHookPluginDataResolver { @Override public boolean isWebHooksCoreAndApiVersionTheSame() { return getWebHooksCoreVersion().equals(getWebHooksRestApiVersion()); } WebHookPluginDataResolverImpl(PluginManager pluginManager); @Override boolean isWebHooksRestApiInstalled(); @Override @Nullable String getWebHooksRestApiVersion(); @Override boolean isWebHooksCoreAndApiVersionTheSame(); @Override String getWebHooksCoreVersion();  }### Answer:
@Test public void testIsWebHooksCoreAndApiVersionTheSamePassesWhenTheyAreTheSame() { initMockData(); WebHookPluginDataResolver resolver = new WebHookPluginDataResolverImpl(pluginManager); assertTrue(resolver.isWebHooksCoreAndApiVersionTheSame()); }
@Test public void testIsWebHooksCoreAndApiVersionTheSameFailsWhenTheyAreDifferent() { initMockData(); when(corePlugin.getPluginVersion()).thenReturn("1.2.3.5"); WebHookPluginDataResolver resolver = new WebHookPluginDataResolverImpl(pluginManager); assertFalse(resolver.isWebHooksCoreAndApiVersionTheSame()); }