public void setUp()
        {
            IDeploymentBuilder deploymentbuilder = repositoryService.CreateDeployment();
            IBpmnModelInstance defaultModel      = DefaultExternalTaskModelBuilder.CreateDefaultExternalTaskModel().Build();
            IBpmnModelInstance modifiedModel     = DefaultExternalTaskModelBuilder.CreateDefaultExternalTaskModel().ProcessKey(ANOTHER_PROCESS_KEY).Build();

            deploymentId = Deployment(deploymentbuilder, defaultModel, modifiedModel);

            base.setUp();
        }
        protected internal virtual IExternalTask startExternalTaskProcess()
        {
            var oneExternalTaskProcess = DefaultExternalTaskModelBuilder.CreateDefaultExternalTaskModel()
                                         .Build();
            var sourceProcessDefinition = testHelper.DeployAndGetDefinition(oneExternalTaskProcess);
            var pi = runtimeService.StartProcessInstanceById(sourceProcessDefinition.Id);

            return(externalTaskService.CreateExternalTaskQuery(c => c.ProcessInstanceId == pi.Id)
                   .First());
        }