@Test
	public void testShowAllTrackedJobs() throws LuaScriptException {
		String jid = addNewTestJob();
		String jid2 = addJob(UUID.randomUUID().toString(), TEST_QUEUE);

		// Track both jobs
		performTrackingAction("track", jid);
		performTrackingAction("track", jid2);

		// Get tracked status
		List<String> emptyKeys = new ArrayList<String>();
		String json = (String) _luaScript.callScript(this.scriptName(),
				emptyKeys, emptyKeys);

		// Fix potential parsing issues upfront
		json = JsonHelper.fixArrayField(json, "jobs");
		json = JsonHelper.fixArrayField(json, "expired");

		Map<String, Object> tracked = JsonHelper.parseMap(json);
		@SuppressWarnings("unchecked")
		List<Map<String, Object>> trackedJobs = (List<Map<String, Object>>) tracked
				.get("jobs");

		for (Map<String, Object> job : trackedJobs) {
			assertEquals("true", job.get("tracked").toString());

			if (job.get("jid").toString().equals(jid)) {
				assertEquals(jid, job.get("jid").toString());
			} else if (job.get("jid").toString().equals(jid2)) {
				assertEquals(jid2, job.get("jid").toString());
			}
		}

		untrackAndRemove(jid);
		untrackAndRemove(jid2);
	}