private void putConfigInHome(JenkinsRule r, String config) throws Exception {
        File configFile = new File(r.getWebAppRoot(), ConfigurationAsCode.DEFAULT_JENKINS_YAML_PATH);

        writeToFile(config, configFile.getAbsolutePath());
        assertTrue(configFile.exists(), ConfigurationAsCode.DEFAULT_JENKINS_YAML_PATH + " should be created");
    }
1. Configure the instance with the {@link #configResource()} implemented. 2. Check it was
configured correctly. 3. Check the configuration is valid via Web UI. 4. Apply the
configuration via Web UI. 5. Write the configuration to $JENKINS_HOME/jenkins.yaml. 6.
Restart Jenkins. 7. Check the {@link #stringInLogExpected()} is set during the restart.

@throws IOException If an exception is thrown managing resources or files.
test-harness/src/main/java/io/jenkins/plugins/casc/misc/junit/jupiter/AbstractRoundTripTest.java