title: bpmn - simple test for JavaDelegate implementation
body: <p>I have implement a Simple JavaDelegate as a Task of my BPMN-Process:</p>
  
  <pre><code>public class CleanupVariables implements JavaDelegate {
  
      @Override
      public void execute(DelegateExecution execution) throws Exception {
          String printJobId = execution.getVariable("VIP-Variable").toString();
  
          // remove all variables
          execution.removeVariables();
  
          // set variable
          execution.setVariable("VIP-Variable", printJobId);
      }
  }
  </code></pre>
  
  <p>Now I want to write a Unit-Test.</p>
  
  <pre><code> @Test
      public void testRemove() throws Exception {
          // Arrange
          CleanupVariables cleanupVariables = new CleanupVariables();
  
          testdelegate.setVariable("VIP-Variable", "12345");
          testdelegate.setVariable("foo", "bar");
  
          // Act
          cleanupVariables.execute(????); // FIXME what to insert here?
  
          // Assert
          Assertions.assertThat(testdelegate.getVariables().size()).isEqualTo(1);
          Assertions.assertThat(testdelegate.getVariable("VIP-Variable")).isEqualTo("12345");
  
      }
  </code></pre>
  
  <p>I could not figure out how to insert some implementation of <code>DelegateExecution</code> in my act-step. 
  Is there any dummy-impl to use right here? How to test this as simple as possible?</p>
  
  <p>I will not start a processinstance for testing this code. Google didn't come up with some usefull stuff.</p>