}
private void _testSubsetActions(final String jobId) throws Exception {
CoordinatorEngine ce = new CoordinatorEngine(getTestUser());
// Check for WAITING filter
CoordinatorJob job = ce.getCoordJob(jobId, "status=WAITING", 1, 2, false);
// As both actions are waiting, expected result size is 2
assertEquals(job.getActions().size(), 2);
job = ce.getCoordJob(jobId, "status=WAITING", 1, 0, false);
// Since length is 0, number of actions returned should be 0.
assertEquals(job.getActions().size(), 0);
job = ce.getCoordJob(jobId, "status=RUNNING", 1, 2, false);
assertEquals(job.getActions().size(), 0);
//Check for actions WAITING OR RUNNING
job = ce.getCoordJob(jobId, "status=RUNNING;status=WAITING", 1, 2, false);
assertEquals(job.getActions().size(), 2);
//Check without filters
job = ce.getCoordJob(jobId, null, 1, 2, false);
assertEquals(job.getActions().size(), 2);
//Check for empty filter list
job = ce.getCoordJob(jobId, "", 1, 2, false);
assertEquals(job.getActions().size(), 2);
//Check for negative filter
job = ce.getCoordJob(jobId, "status!=RUNNING", 1, 2, false);
assertEquals(job.getActions().size(), 2);
//Check for multiple negative filter
job = ce.getCoordJob(jobId, "status!=RUNNING;status!=WAITING", 1, 2, false);
assertEquals(job.getActions().size(), 0);
//Check for combination of positive and negative filter
try {
job = ce.getCoordJob(jobId, "status=WAITING;status!=WAITING", 1, 2, false);
}