@Test
  public void testApplicationFromId() {
    running(testServer(TEST_SERVER_PORT, fakeApp), new Runnable() {
      public void run() {
        populateTestData();
        final WS.Response response = WS.url(BASE_URL + REST_APPLICATIONS_PATH).
            setQueryParameter("applicationid", TEST_JOB_ID1).
            get().get(RESPONSE_TIMEOUT, TimeUnit.MILLISECONDS);
        Iterator<JsonNode> applications = response.asJson().elements();
        while (applications.hasNext()) {
          JsonNode node = applications.next();
          Assert.assertEquals(node.findValue("username").asText(), "growth");
          Assert.assertEquals(node.findValue("starttime").asLong(), 1460980616502L);
          Assert.assertEquals(node.findValue("finishtime").asLong(), 1460980723925L);
          Assert.assertEquals(node.findValue("waittime").asLong(), 20);
          Assert.assertEquals(node.findValue("resourceused").asLong(), 100);
          Assert.assertEquals(node.findValue("resourcewasted").asLong(), 30);
          Assert.assertEquals(node.findValue("severity").asText(), "None");
          Assert.assertEquals(node.findValue("queue").asText(), "misc_default");
          Assert.assertEquals(node.findValue("trackingurl").asText(),
              "http://elephant.linkedin.com:19888/jobhistory/job/job_1458194917883_1453361");
        }
      }
    });
  }
<p>
Rest API  - Provides data for plotting the flow history graph for time and resources
</p>
test/rest/RestAPITest.java