@Test
@ExtendWith(TemporaryFolderExtension.class)
void testEnvironmentPropertiesNotFoundInBundle(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);
    ImmutableMap<String, String> environmentProperties = ImmutableMap.<String, String>builder()
            .put("ENV.SERVICE_PROPERTY.my-gateway-api.myEnvironmentVariable", "my-service-property-value")
            .put("ENV.CONTEXT_VARIABLE_PROPERTY.anotherEnvVar", "context-variable-value")
            .put("ENV.SERVICE_PROPERTY.my-gateway-api.environmentVariableNotInBundle", "my-service-property-value")
            .put("ENV.CONTEXT_VARIABLE_PROPERTY.environmentVariableNotInBundle", "context-variable-value")
            .build();
    new EnvironmentCreatorApplication(environmentProperties, testTemplatizedBundlesFolder.getPath(), testDetemplatizedBundlesFolder.getPath(), keyStoreFolder.getPath(), privateKeyFolder.getPath(), envFolder.getPath()).run();
}