@Test
@ExtendWith(TemporaryFolderExtension.class)
void testEnvironmentFromConfigFolderMissingValues(TemporaryFolder temporaryFolder) throws URISyntaxException, IOException {

    File testTemplatizedBundlesFolder = new File(temporaryFolder.getRoot(), "templatized-bundles");
    File testDetemplatizedBundlesFolder = new File(temporaryFolder.getRoot(), "detemplatized-bundles");
    File keyStoreFolder = new File(temporaryFolder.getRoot(), "keystore");
    File envFolder = new File(temporaryFolder.getRoot(), "config");
    File privateKeyFolder = new File(envFolder, "privateKeys");
    assertTrue(testDetemplatizedBundlesFolder.mkdirs());
    copyDirectory(new File(Objects.requireNonNull(getClass().getClassLoader().getResource("templatized-bundles")).toURI()), testTemplatizedBundlesFolder);
    writeStringToFile(
            new File(envFolder, "service-env.properties"),
            "my-gateway-api.myEnvironmentVariable=my-service-property-value",
            defaultCharset()
    );
    writeStringToFile(new File( envFolder, "context-env.properties"), "anotherEnvVar=context-variable-value", defaultCharset());
    new EnvironmentCreatorApplication(
            System.getenv(),
            testTemplatizedBundlesFolder.getPath(),
            testDetemplatizedBundlesFolder.getPath(),
            keyStoreFolder.getPath(),
            privateKeyFolder.getPath(),
            temporaryFolder.getRoot().getPath()
    ).run();
}