//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testBatchQueryBySuspendedBatches() public virtual void testBatchQueryBySuspendedBatches() { // given Batch batch1 = helper.migrateProcessInstancesAsync(1); Batch batch2 = helper.migrateProcessInstancesAsync(1); helper.migrateProcessInstancesAsync(1); // when managementService.suspendBatchById(batch1.Id); managementService.suspendBatchById(batch2.Id); managementService.activateBatchById(batch1.Id); // then BatchQuery query = managementService.createBatchQuery().suspended(); Assert.assertEquals(1, query.count()); Assert.assertEquals(1, query.list().size()); Assert.assertEquals(batch2.Id, query.singleResult().Id); }