public void checkForUpgradeAndExtraProperties() throws IOException {
        if (upgradesEnabled()) {
            checkForUpgradeAndExtraProperties(systemEnvironment.getAgentMd5(), systemEnvironment.getGivenAgentLauncherMd5(),
                    systemEnvironment.getAgentPluginsMd5(), systemEnvironment.getTfsImplMd5());
        } else {
            LOGGER.debug("[Agent Upgrade] Skipping check as there is no wrapping launcher to relaunch the agent JVM...");
        }
    }
@Test
    void checkForUpgradeShouldNotKillAgentIfAllDownloadsAreCompatible() throws Exception {
        setupForNoChangesToMD5();

        agentUpgradeService.checkForUpgradeAndExtraProperties();

        verify(jvmExitter, never()).jvmExit(anyString(), anyString(), anyString());
    }