@Test
  public void testrestSearchWithUsernameAndJobType() {
    running(testServer(TEST_SERVER_PORT, fakeApp), new Runnable() {
      public void run() {
        populateTestData();
        final WS.Response response = WS.url(BASE_URL + REST_SEARCH_PATH).
            setQueryParameter("username", TEST_USERNAME).
            setQueryParameter("", TEST_JOB_TYPE).
            get().get(RESPONSE_TIMEOUT, TimeUnit.MILLISECONDS);
        JsonNode reponseJson = response.asJson();
        List<String> jobList = reponseJson.findValuesAsText("id");
        assertTrue("More than one row returned", jobList.size() == 1);
        assertTrue("Job id missing in response", TEST_JOB_ID1.equals(reponseJson.findValue("id").asText()));
        assertTrue("Username incorrect", TEST_USERNAME.equals(reponseJson.findValue("username").asText()));
        assertTrue("Job type incorrect", TEST_JOB_TYPE.equals(reponseJson.findValue("jobType").asText()));
      }
    });
  }
<p>
Rest API - Perform a search with additional params
<br>
Test verifies if specific flow is returned
</p>
<p>
Following assertions are made in the response json
  <ul>No of jobs returned</ul>
  <ul>Job id</ul>
  <ul>Username</ul>
  <ul>Job type</ul>
</p>
test/rest/RestAPITest.java