### Question:
InferenceInputQueueListenerTask extends InferenceQueueListenerTask { protected long computeTimeDifference(long timestamp) { return (System.currentTimeMillis() - timestamp) / 1000; } InferenceInputQueueListenerTask(); String getQueueDisplayName();  }### Answer:
@Test public void testComputeTimeDifference() throws Exception { assertEquals(task.computeTimeDifference(timestamp), 0); assertTrue(task.computeTimeDifference(timestamp-50000) < 300); assertFalse(task.computeTimeDifference(timestamp-350000) < 300); }