@Test
void serverConfigIsPatchedCorrectly() throws IOException, IllegalAccessException {

    Path config = tempDir.resolve("oldconfig.yml");
    Files.copy(oldConfig.toPath(), config, StandardCopyOption.REPLACE_EXISTING);
    PlanConfig planConfig = new PlanConfig(config.toFile(), null, null, new TestPluginLogger());
    UNDER_TEST.applyConfigUpdate(planConfig);
    // Ensure that added settings are present
    copyMissingFrom(planConfig, newConfig);
    Collection<Setting> settings = ConfigSettingKeyTest.getServerSettings();
    ConfigSettingKeyTest.assertValidDefaultValuesForAllSettings(planConfig, settings);
}