public virtual void TestJobExecutorOnlyAcquiresActiveJobs()
        {
            _testRule.Deploy(_simpleAsyncProcess);

            // given suspended job definition:
            _managementService.SuspendJobDefinitionByProcessDefinitionKey("simpleAsyncProcess");

            // if I start a new instance
            _runtimeService.StartProcessInstanceByKey("simpleAsyncProcess");

            // then the new job executor will not acquire the job:
            var acquiredJobs = AcquireJobs();

            Assert.AreEqual(0, acquiredJobs.Size());

            // -------------------------

            // given a active job definition:
            _managementService.ActivateJobDefinitionByProcessDefinitionKey("simpleAsyncProcess", true);

            // then the new job executor will not acquire the job:
            acquiredJobs = AcquireJobs();
            Assert.AreEqual(1, acquiredJobs.Size());
        }