@@ -0,0 +1,1819 @@
+package org.camunda.bpm.extension.junit5;%0A%0Aimport org.camunda.bpm.extension.junit5.test.ProcessEngineExtension;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.ExtensionContext;%0A%0A/**%0A * @author Martin Schimak%0A */%0Apublic class ProcessEngineExtensionDeploymentIdAccess %7B%0A%0A  @Test%0A  public void testDeploymentIdWriteableForExtensions() %7B%0A%0A    class ProcessEngineExtensionExtension extends org.camunda.bpm.extension.junit5.test.ProcessEngineExtension %7B%0A%0A      @Override%0A      public void beforeTestExecution(ExtensionContext context) %7B%0A        // here I could decide to override the way the deployment is created, e.g.%0A        // add mocked call activities etc, therefore I need deploymentId accessible%0A        // Note: in case the write access is removed, this will not compile anymore%0A        this.deploymentId = %22xyz%22;%0A      %7D%0A%0A    %7D%0A%0A  %7D%0A%0A%0A  @Test%0A  public void testDeploymentIdReadableForExtensionsAndWrappers() %7B%0A%0A    class ProcessEngineExtensionExtension extends org.camunda.bpm.extension.junit5.test.ProcessEngineExtension %7B%0A%0A      @Override%0A      public void afterTestExecution(ExtensionContext context) %7B%0A        // here I could decide to override the way the deployment is removed%0A        // Note: in case the write access is removed, this will not compile anymore%0A        String deploymentId = this.deploymentId;%0A      %7D%0A%0A    %7D%0A%0A    class ProcessEngineExtensionWrapper %7B%0A%0A      ProcessEngineExtension wrapped = ProcessEngineExtension.builder().build();%0A%0A      %7B%0A        // here I could decide to access the deployment. e.g. to look at the%0A        // runtime or history data of the current deployment before it is removed%0A        // Note: in case this read access is removed, this will not compile anymore%0A        String deploymentId = wrapped.getDeploymentId();%0A      %7D%0A%0A    %7D%0A%0A  %7D%0A%0A%7D%0A

Add unit test to document read/write access to deployment id and protect it against regression