@Test
	public void testQueuePopMultipleJobs() throws LuaScriptException {
		String jid1 = addJob();
		String jid2 = addJob();

		List<BaseJob> jobs = _queue.pop(2);

		assertEquals(2, jobs.size());

		for (BaseJob baseJob : jobs) {
			assertTrue(baseJob.getAttributes().getJID().equals(jid1)
					|| baseJob.getAttributes().getJID().equals(jid2));
		}

		removeJobs(jid1, jid2);
	}