@Test
public void testMigrateSingleProcessInstanceWithNodeMapping() {

    
    String activeNodeId = "_ECEDD1CE-7380-418C-B7A6-AF8ECB90B820";
    String nextNodeId = "_9EF3CAE0-D978-4E96-9C00-8A80082EB68E";
    
    Map<String, String> nodeMapping = new HashMap<String, String>();
    nodeMapping.put(activeNodeId, nextNodeId);
    
    long processInstanceId = processService.startProcess(deploymentUnitV1.getIdentifier(), REMOVEACTIVETASK_ID_V1);
    assertNotNull(processInstanceId);
    
    MigrationReport report = migrationService.migrate(deploymentUnitV1.getIdentifier(), processInstanceId, deploymentUnitV2.getIdentifier(), REMOVEACTIVETASK_ID_V2, nodeMapping);
    assertNotNull(report);
    assertTrue(report.isSuccessful());
    assertMigratedProcessInstance(REMOVEACTIVETASK_ID_V2, processInstanceId, ProcessInstance.STATE_ACTIVE);
    
    assertMigratedTaskAndComplete(REMOVEACTIVETASK_ID_V2, processInstanceId, "Mapped Task");
    
    assertMigratedProcessInstance(REMOVEACTIVETASK_ID_V2, processInstanceId, ProcessInstance.STATE_COMPLETED);
}