@SuppressWarnings("unchecked")
public void testJobTrackerProcessor() {
JSONObject json = getJSONObject();
json.put("memHeapUsedM", "286");
json.put("maps_killed", "3");
json.put("waiting_maps", "1");
json.put("RpcProcessingTime_avg_time", "0.003");
byte[] data = json.toString().getBytes();
JobTrackerProcessor p = new JobTrackerProcessor();
ChunkImpl ch = new ChunkImpl("TestType", "Test", data.length, data,
null);
String failMsg = testProcessor(p, json, ch);
assertNull(failMsg, failMsg);
json.put("maps_killed", "5");
data = json.toString().getBytes();
ch = new ChunkImpl("TestType", "Test", data.length, data, null);
json.put("maps_killed", "2");
failMsg = testProcessor(p, json, ch);
assertNull(failMsg, failMsg);
}