@Test
void detemplatizeBundleStringMissingEnv() {

    Map<String,ContextVariableEnvironmentProperty> env = new HashMap<>();
    env.put("myEnvironmentVariable", new ContextVariableEnvironmentProperty("myEnvironmentVariable","abc"));
    Bundle bundle = new Bundle();
    bundle.putAllContextVariableEnvironmentProperties(env);
    BundleDetemplatizer bundleDetemplatizer = new BundleDetemplatizer(bundle);
    assertThrows(BundleDetemplatizeException.class, () -> bundleDetemplatizer.detemplatizeBundleString(bundleXml));
}